Package: python-pyexiv2
Version: 0.3.2-1
pyexiv2.xmp.register_namespace() requires the URI to end with "/"
characters. I believe that this is unreasonable requirement. What the
XMP specification says about the subject is:
“A namespace URI used in XMP should end in a character that is not
allowed in an XML NCName (the local name). Recommended characters are
the slash ("/", U+002F) or the number sign ("#", U+0023). This can
improve compatibility with applications that catenate the namespace URI
and local name, avoiding potential collisions.”
Please allow at least "#" as trailing character in namespace URIs.
BTW, I'm currently using this hack to work-around the bug:
def xmp_register_namespace(prefix, uri):
class fool_pyexiv2(str):
def endswith(self, suffix, *args, **kwargs):
return True
pyexiv2.xmp.register_namespace(fool_pyexiv2(uri), prefix)
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org