Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 1346:f54660b33a24
release 0.3.0
Ignore-this: 24ef128b3e09333e2ed61b04e04b479a
darcs-hash:512129e12304545dcc5e22a840c3910d258e5221
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 25 Apr 2019 23:01:04 -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