Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 976:6754aa8aab38
clean up rdf-observe demo ui
Ignore-this: 8795333fe63ccd47e8c3e9584efaa43d
darcs-hash:20150414090151-312f9-dffbf118217e3d5080b5f87a0731659c1028784e
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Tue, 14 Apr 2015 02:01:51 -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