view service/arduinoNode/rdflib_patch.py @ 1334:73c2b13692b7

rewrite dhcpleases to use dnsmasq's data files, and all the new build stuff Ignore-this: 2dffc17b676253d4fec234fc096db4d5 darcs-hash:be3903ed924e998edd207ac4d8ae336bc64243ba
author drewp <drewp@bigasterisk.com>
date Tue, 23 Apr 2019 02:56:07 -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