walidazizi / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

ClosedNamespace.__str__ returns URIRef not str #154

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by christop...@gmail.com on 9 Dec 2010 at 2:51

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1901.

Original comment by gromgull on 28 Jan 2011 at 6:41

GoogleCodeExporter commented 8 years ago
The patch doesn't seem to break any tests so I've applied it. Thanks for 
contributing!

Original comment by gromgull on 28 Jan 2011 at 6:41

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 9ea242a449c7.

Original comment by gromgull on 30 Mar 2011 at 9:07