Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 998:ecb12305d5ca
rewrite to polymer 1
Ignore-this: 9e66ae7e1227732e68393326b2483aa2
darcs-hash:20150830081957-312f9-be4fac6d250655133b68c0fdd6e447b5195ef631
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 30 Aug 2015 01:19:57 -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