From e8da78af846bac21363c85d4bee5d938844843be Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 28 Oct 2011 13:13:07 -0700 Subject: 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. --- bin/portageq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/portageq') 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]) -- cgit v1.2.3-1-g7c22