summaryrefslogtreecommitdiffstats
path: root/pym/repoman
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-12-06 13:50:52 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-12-06 13:50:52 +0100
commitecaa391a9a3bcfa338b9f29d9da6ec6bea4ed5d8 (patch)
tree8f3cce7a3f409b901cbc779cbb393e0a35585466 /pym/repoman
parent8205640d44fd3212463db6b60f30ceb5c0183233 (diff)
downloadportage-ecaa391a9a3bcfa338b9f29d9da6ec6bea4ed5d8.tar.gz
portage-ecaa391a9a3bcfa338b9f29d9da6ec6bea4ed5d8.tar.bz2
portage-ecaa391a9a3bcfa338b9f29d9da6ec6bea4ed5d8.zip
Use bytes literals.
Diffstat (limited to 'pym/repoman')
-rw-r--r--pym/repoman/utilities.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/repoman/utilities.py b/pym/repoman/utilities.py
index 953c3cd2b..9d4898e8a 100644
--- a/pym/repoman/utilities.py
+++ b/pym/repoman/utilities.py
@@ -30,6 +30,7 @@ from portage import _encodings
from portage import _unicode_decode
from portage import _unicode_encode
from portage import output
+from portage.localization import _
from portage.output import red, green
from portage.process import find_binary
from portage import exception
@@ -310,14 +311,13 @@ def get_commit_message_with_editor(editor, message=None):
from tempfile import mkstemp
fd, filename = mkstemp()
try:
- os.write(fd, _unicode_encode(
+ os.write(fd, _unicode_encode(_(
"\n# Please enter the commit message " + \
"for your changes.\n# (Comment lines starting " + \
- "with '#' will not be included)\n",
+ "with '#' will not be included)\n"),
encoding=_encodings['content'], errors='backslashreplace'))
if message:
- os.write(fd, _unicode_encode("#\n",
- encoding=_encodings['content'], errors='backslashreplace'))
+ os.write(fd, b"#\n")
for line in message:
os.write(fd, _unicode_encode("#" + line,
encoding=_encodings['content'], errors='backslashreplace'))