[Python-modules-commits] r13583 - in packages/markupsafe/trunk/debian (control)
piotr at users.alioth.debian.org
piotr at users.alioth.debian.org
Wed Jun 23 23:21:35 UTC 2010
Date: Wednesday, June 23, 2010 @ 23:21:34
Author: piotr
Revision: 13583
fix long description (u'' in python3)
Modified:
packages/markupsafe/trunk/debian/control
Modified: packages/markupsafe/trunk/debian/control
===================================================================
--- packages/markupsafe/trunk/debian/control 2010-06-23 23:05:43 UTC (rev 13582)
+++ packages/markupsafe/trunk/debian/control 2010-06-23 23:21:34 UTC (rev 13583)
@@ -36,6 +36,7 @@
>>> soft_unicode(42)
u'42'
>>> soft_unicode(Markup('foo'))
+ Markup(u'foo')
Package: python-markupsafe-dbg
Architecture: any
@@ -53,10 +54,10 @@
.
>>> from markupsafe import Markup, escape
>>> escape("<script>alert(document.cookie);</script>")
- Markup(u'<script>alert(document.cookie);</script>')
+ Markup('<script>alert(document.cookie);</script>')
>>> tmpl = Markup("<em>%s</em>")
>>> tmpl % "Peter > Lustig"
- Markup(u'<em>Peter > Lustig</em>')
+ Markup('<em>Peter > Lustig</em>')
.
If you want to make an object unicode that is not yet unicode
but don't want to lose the taint information, you can use the
@@ -64,8 +65,9 @@
.
>>> from markupsafe import soft_unicode
>>> soft_unicode(42)
- u'42'
+ '42'
>>> soft_unicode(Markup('foo'))
+ Markup('foo')
Package: python3-markupsafe-dbg
Architecture: any
More information about the Python-modules-commits
mailing list