Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 1318:16a5c8df0f20
release 0.1.0
Ignore-this: d8176b1d00777747f431c40155fd4a6c
darcs-hash:218fd667f0dc71e85c1d0d4d971f9ce478e88597
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 22 Apr 2019 23:31:29 -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