Avoid unnecessary sys.hexversion conditional.
authorZac Medico <zmedico@gentoo.org>
Thu, 12 Aug 2010 13:51:11 +0000 (06:51 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Aug 2010 13:51:11 +0000 (06:51 -0700)
pym/_emerge/PipeReader.py

index 604fbf29d201b0aeb83d1bff6677f0ae477ef694..4444c4e8cd75a649cd23a8ceabf40d7e8d22841e 100644 (file)
@@ -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."""