diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-07-16 21:04:44 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-07-17 06:27:19 +0200 |
commit | 27378ccf8e497f6d5d938470db8a9caacba176ab (patch) | |
tree | d84293d8ace18211ca77d776a0fab2442bdfce4f /lib/portage/output.py | |
parent | Update copyright headers after previous change (diff) | |
download | portage-27378ccf8e497f6d5d938470db8a9caacba176ab.tar.gz portage-27378ccf8e497f6d5d938470db8a9caacba176ab.tar.bz2 portage-27378ccf8e497f6d5d938470db8a9caacba176ab.zip |
Clean up more py2 conditional code
Closes: https://github.com/gentoo/portage/pull/575
Reviewed-by: Zac Medico <zmedico@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'lib/portage/output.py')
-rw-r--r-- | lib/portage/output.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/portage/output.py b/lib/portage/output.py index 26880adca..dbfb81714 100644 --- a/lib/portage/output.py +++ b/lib/portage/output.py @@ -396,8 +396,7 @@ class ConsoleStyleFile(object): if f in (sys.stdout, sys.stderr): s = _unicode_encode(s, encoding=_encodings['stdio'], errors='backslashreplace') - if sys.hexversion >= 0x3000000: - f = f.buffer + f = f.buffer f.write(s) def writelines(self, lines): |