view service/arduinoNode/rdflib_patch.py @ 1379:baf1acaa9ac9

new simple mode that can set the door without rdf Ignore-this: ff9ab7c6507a7b3fb3252f91b078a318 darcs-hash:98fd79e309f5220c29412c480efefff36778a952
author drewp <drewp@bigasterisk.com>
date Mon, 06 May 2019 21:07:42 -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