Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 334:bb80182195c0
arduinonode reads config from etcd. use pushConfig.py to inform all nodes
Ignore-this: 3155d873bb30ca82b48ace7531a550e5
author | drewp@bigasterisk.com |
---|---|
date | Sat, 03 Mar 2018 17:53:37 -0800 |
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