view service/arduinoNode/rdflib_patch.py @ 1373:f502b4d7f64c

release 0.6.0 Ignore-this: d68489fed902cda3823f8b8ed7d96893 darcs-hash:cf1c36110269f2adeeca31c635fa09559faae123
author drewp <drewp@bigasterisk.com>
date Mon, 06 May 2019 00:03:35 -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