view service/arduinoNode/rdflib_patch.py @ 470:91ab9f926aa1

py3 updates. some other refactors. Ignore-this: d767dfb98f4191f61b4ff6177c76b36a
author drewp@bigasterisk.com
date Sat, 20 Apr 2019 23:46:57 -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