diff genshi/path.py @ 857:24733a5854d9

Avoid unicode literals in `repr`s of `QName` and `Namespace` when not necessary.
author cmlenz
date Thu, 12 Nov 2009 15:09:26 +0000
parents 1e2be9fb3348
children 61d37796da98
line wrap: on
line diff
--- a/genshi/path.py
+++ b/genshi/path.py
@@ -619,7 +619,7 @@
         >>> for event in xml:
         ...     if test(event, namespaces, variables):
         ...         print('%s %r' % (event[0], event[1]))
-        START (QName(u'child'), Attrs([(QName(u'id'), u'2')]))
+        START (QName('child'), Attrs([(QName('id'), u'2')]))
         
         :param ignore_context: if `True`, the path is interpreted like a pattern
                                in XSLT, meaning for example that it will match
Copyright (C) 2012-2017 Edgewall Software