view service/arduinoNode/rdflib_patch.py @ 400:1b303e7542a3

start the next python rewrite of rfid pm_532 reader. Nim didn' Ignore-this: b6a98b3f0f1c4147bedcc5d2bcfec226 t go well with asynchttpserer adn hreaind
author drewp@bigasterisk.com
date Wed, 27 Feb 2019 10:23:36 -0800
parents d228105749ac
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