Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 198:06795f84fe29
arduinoNode config. missing import
Ignore-this: d2fb9c1c35ff9b30f0b7b0ee67342821
author | drewp@bigasterisk.com |
---|---|
date | Sun, 04 Oct 2015 04:15:57 -0700 |
parents | d228105749ac |
children |
line wrap: on
line source
def fixQnameOfUriWithTrailingSlash(): import rdflib.namespace old_split = rdflib.namespace.split_uri def new_split(uri): try: return old_split(uri) except Exception: return uri, '' rdflib.namespace.split_uri = new_split