summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-07-14 20:32:33 -0700
committerZac Medico <zmedico@gentoo.org>2010-07-14 20:32:33 -0700
commite16858758bcde95a0d9632b017f17676eea66ba5 (patch)
treeba52a447f412980b96c4074b98ce25d2171c73f8 /bin
parentFix unicode handling in arguments and commit message handling (tested (diff)
downloadportage-multirepo-e16858758bcde95a0d9632b017f17676eea66ba5.tar.gz
portage-multirepo-e16858758bcde95a0d9632b017f17676eea66ba5.tar.bz2
portage-multirepo-e16858758bcde95a0d9632b017f17676eea66ba5.zip
Use b'foo' instead of _unicode_encode() where appropriate.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman
index 65d076ad..235d4f07 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -2431,7 +2431,7 @@ else:
fd, commitmessagefile = tempfile.mkstemp(".repoman.msg")
mymsg = os.fdopen(fd, "wb")
mymsg.write(_unicode_encode(commitmessage))
- mymsg.write("\n (Unsigned Manifest commit)")
+ mymsg.write(b"\n (Unsigned Manifest commit)")
mymsg.close()
commit_cmd = [vcs]
@@ -2536,9 +2536,9 @@ else:
# strip the closing parenthesis
mymsg.write(_unicode_encode(commitmessage[:-1]))
if signed:
- mymsg.write(_unicode_encode(", signed Manifest commit)"))
+ mymsg.write(b", signed Manifest commit)")
else:
- mymsg.write(_unicode_encode(", unsigned Manifest commit)"))
+ mymsg.write(b", unsigned Manifest commit)")
mymsg.close()
commit_cmd = []