Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 1348:e681221ab8a3
release 0.4.0
Ignore-this: fa3be75cf8765569c6498f743858ad48
darcs-hash:9803849d98c7a18ed90df08f907749c1ee1d037d
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 25 Apr 2019 23:01:26 -0700 |
parents | f707210c13bd |
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