view service/arduinoNode/rdflib_patch.py @ 1262:a2e3a342315c

build updates. turn off output speed override for now Ignore-this: 81c155e3c11cbad6ec28d22df255d6d5 darcs-hash:061b99e423450ef596bc3e3826c983f973f9f00d
author drewp <drewp@bigasterisk.com>
date Sat, 20 Apr 2019 23:31:16 -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