Rev 1563: Properly encode unicode strings. in file:///data/jelmer/bzr-svn/pushmerged/
Jelmer Vernooij
jelmer at samba.org
Mon Aug 4 16:47:45 BST 2008
At file:///data/jelmer/bzr-svn/pushmerged/
------------------------------------------------------------
revno: 1563
revision-id: jelmer at samba.org-20080804154744-0nhbpqfh3y1xv3hu
parent: jelmer at samba.org-20080804154727-m96k1axtcuzt805o
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: pushmerged
timestamp: Mon 2008-08-04 17:47:44 +0200
message:
Properly encode unicode strings.
modified:
mapping.py mapping.py-20080128201303-6cp01phc0dmc0kiv-1
=== modified file 'mapping.py'
--- a/mapping.py 2008-07-23 19:35:24 +0000
+++ b/mapping.py 2008-08-04 15:47:44 +0000
@@ -219,11 +219,12 @@
if timestamp is not None:
text += "timestamp: %s\n" % format_highres_date(timestamp, timezone)
if committer is not None:
- text += "committer: %s\n" % committer
+ text += "committer: %s\n" % committer.encode("utf-8")
if revprops is not None and revprops != {}:
text += "properties: \n"
for k, v in sorted(revprops.items()):
- text += "\t%s: %s\n" % (k, v)
+ text += "\t%s: %s\n" % (k.encode("utf-8"), v.encode("utf-8"))
+ assert isinstance(text, str)
return text
More information about the bazaar-commits
mailing list