summaryrefslogtreecommitdiffstats
path: root/bin/portageq
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-28 13:13:07 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-28 13:13:07 -0700
commite8da78af846bac21363c85d4bee5d938844843be (patch)
tree2fb3f4d7baa85d21c47600190c9acd24d68487c0 /bin/portageq
parent4198da0184aaec30c41f2e5d2c7af71c4d35b662 (diff)
downloadportage-e8da78af846bac21363c85d4bee5d938844843be.tar.gz
portage-e8da78af846bac21363c85d4bee5d938844843be.tar.bz2
portage-e8da78af846bac21363c85d4bee5d938844843be.zip
Check for bytes instead of unicode in args.
This simplifies the checks since the bytes type is available in all supported python versions, while the unicode type is only available in python2.
Diffstat (limited to 'bin/portageq')
-rwxr-xr-xbin/portageq2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/portageq b/bin/portageq
index 02f19040c..40cc21d27 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -847,7 +847,7 @@ def main():
os.environ["ROOT"] = root
args = sys.argv[2:]
- if args and sys.hexversion < 0x3000000 and not isinstance(args[0], unicode):
+ if args and isinstance(args[0], bytes):
for i in range(len(args)):
args[i] = portage._unicode_decode(args[i])