view service/arduinoNode/rdflib_patch.py @ 991:c6989dcf1f4f

temp sensor try to work with idle loop (but there are still stutters) Ignore-this: d3d33548db6ce6c329f8aef2cd83403a darcs-hash:20150708082102-312f9-ea553ff8ce011065b93ed3dae5dbc8fa057ca0d8
author drewp <drewp@bigasterisk.com>
date Wed, 08 Jul 2015 01:21:02 -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