RDFLib/rdflib — Issue #144: ClosedNamespace.__str__ returns URIRef not str
Author: gjhiggins
Created: 2012-02-20 08:33:45+00:00
State: open

christop...@gmail.com, 2010-12-09T14:51:33.000Z

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.

Comment 1 by gromgull
This issue was closed by revision r1901.

Comment 2 by gromgull
The patch doesn't seem to break any tests so I've applied it. Thanks for contributing!

Comment 3 by gromgull
This issue was closed by revision 9ea242a449c7.