Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 1463:2452dd87aa9c
release 0.9.0
Ignore-this: cd9ac6c22e35bce9d647edd85ab75acd
darcs-hash:ee94646423f37369ac319ecce7a49cb108ecada4
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 24 Nov 2019 00:02:42 -0800 |
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