view service/arduinoNode/rdflib_patch.py @ 1149:163042261ef1

rename board0 to boardBang. add other temp sensor. Ignore-this: 10df00e617c1f4d5b4427efb5e9a544d darcs-hash:cb8ca1761579e8eb0932271f62513ae4b7e93fc4
author drewp <drewp@bigasterisk.com>
date Sat, 14 Apr 2018 23:47:34 -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