Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 569:2d13254fdd44
fix old module name twisted_sse_demo
Ignore-this: 9eae98ea57725eeaf68e94e9f9f46fec
author | drewp@bigasterisk.com |
---|---|
date | Mon, 06 May 2019 00:02:26 -0700 |
parents | d228105749ac |
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