view service/arduinoNode/rdflib_patch.py @ 1500:c7cb4db0a05d

influx on default host 'bang5' Ignore-this: d061f2f1587f4aadc0e51d840889de79 darcs-hash:946c22f5a028fc34fd2ff1d911a873edc82fcdf5
author drewp <drewp@bigasterisk.com>
date Sun, 02 Feb 2020 14:42:07 -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