Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 1019:93cc6238f5ce
support a dir of config files
Ignore-this: 729d0aea065af5a0fac6b07653b1d3d2
darcs-hash:bc13d26d7496710125a1dd512ab2c25a0bd47a01
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 03 Jan 2016 02:27:17 -0800 |
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