diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-12-06 13:50:52 +0100 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2010-12-06 13:50:52 +0100 |
commit | ecaa391a9a3bcfa338b9f29d9da6ec6bea4ed5d8 (patch) | |
tree | 8f3cce7a3f409b901cbc779cbb393e0a35585466 /pym/repoman | |
parent | 8205640d44fd3212463db6b60f30ceb5c0183233 (diff) | |
download | portage-ecaa391a9a3bcfa338b9f29d9da6ec6bea4ed5d8.tar.gz portage-ecaa391a9a3bcfa338b9f29d9da6ec6bea4ed5d8.tar.bz2 portage-ecaa391a9a3bcfa338b9f29d9da6ec6bea4ed5d8.zip |
Use bytes literals.
Diffstat (limited to 'pym/repoman')
-rw-r--r-- | pym/repoman/utilities.py | 8 |
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')) |