summaryrefslogtreecommitdiffstats
path: root/pym/repoman
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-12-06 13:50:52 +0100
committerZac Medico <zmedico@gentoo.org>2010-12-07 21:49:38 -0800
commit26ff164f0f96f2c1c5a39d3787f6abd7d1309371 (patch)
tree443e7c630b60bc429ae739c3a897c0782db37247 /pym/repoman
parentdc374a216146ea3f376591553bd84c055754f708 (diff)
downloadportage-26ff164f0f96f2c1c5a39d3787f6abd7d1309371.tar.gz
portage-26ff164f0f96f2c1c5a39d3787f6abd7d1309371.tar.bz2
portage-26ff164f0f96f2c1c5a39d3787f6abd7d1309371.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'))