Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 1388:3e9d9cbbb13f
release 0.7.0
Ignore-this: 91592ac0e434c1585a7afbb0313f0f05
darcs-hash:21e99b27f648db4b42a8b74a1963d3f6fa3e1453
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 10 May 2019 02:10:05 -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