gjhiggins/rdflib — Issue #153: ClosedNamespace.__str__ returns URIRef not str
Author: gjhiggins
Created: 2011-10-19 01:31:50+00:00
State: open

Originally filed by christop...@gmail.com on 2010-12-09T14:51:33

str() on a ClosedNamespace will return a URIRef not a string. This behaviour does not seem to comply with Python standards and for example breaks SuRF which uses the string value for a dict lookup which consequently fails.

See attached patch for a fix.