From 4fa2eea0844d024ee2a37773666d248e4d6c479b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 12 Aug 2010 06:51:11 -0700 Subject: [PATCH] Avoid unnecessary sys.hexversion conditional. --- pym/_emerge/PipeReader.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pym/_emerge/PipeReader.py b/pym/_emerge/PipeReader.py index 604fbf29d..4444c4e8c 100644 --- a/pym/_emerge/PipeReader.py +++ b/pym/_emerge/PipeReader.py @@ -1,10 +1,9 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from portage import os from _emerge.AbstractPollTask import AbstractPollTask from _emerge.PollConstants import PollConstants -import sys import fcntl import array @@ -52,9 +51,7 @@ class PipeReader(AbstractPollTask): def getvalue(self): """Retrieve the entire contents""" - if sys.hexversion >= 0x3000000: - return bytes().join(self._read_data) - return "".join(self._read_data) + return b''.join(self._read_data) def close(self): """Free the memory buffer.""" -- 2.26.2