view service/arduinoNode/rdflib_patch.py @ 1066:a6639d55ad4b

route output url through output-sender Ignore-this: aae9d5973afaa870bf4b7eee33dbce06 darcs-hash:1c922020f377444a21b03a3b2132f7fe0cb71459
author drewp <drewp@bigasterisk.com>
date Mon, 21 Mar 2016 04:26:14 -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