From 983fb3a7a14c8507005d2828c02f464ced72fe5d Mon Sep 17 00:00:00 2001 From: Gregory Warnes Date: Wed, 16 Feb 2005 14:45:37 +0000 Subject: [PATCH] Remember to paste prefix back onto the XMLname before returning. --- XMLname.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/XMLname.py b/XMLname.py index f8e48ca..5961160 100644 --- a/XMLname.py +++ b/XMLname.py @@ -71,7 +71,9 @@ def toXMLname(string): X.append(_toUnicodeHex(T[i])) else: X.append(T[i]) - + + if prefix: + return "%s:%s" % (prefix, u''.join(X)) return u''.join(X)