Mercurial > code > home > repos > homeauto
diff service/arduinoNode/rdflib_patch.py @ 169:d228105749ac
new /output to post statements which devices can handle. led and lcd output working
Ignore-this: afa16b081869a52380b04271a35c53c7
author | drewp@bigasterisk.com |
---|---|
date | Sun, 12 Apr 2015 03:44:14 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/arduinoNode/rdflib_patch.py Sun Apr 12 03:44:14 2015 -0700 @@ -0,0 +1,10 @@ + +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