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. --- pym/_emerge/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 0dfc5f998..162f70ffd 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1233,8 +1233,7 @@ def parse_opts(tmpcmdline, silent=False): if myaction is None and myoptions.deselect is True: myaction = 'deselect' - if myargs and sys.hexversion < 0x3000000 and \ - not isinstance(myargs[0], unicode): + if myargs and isinstance(myargs[0], bytes): for i in range(len(myargs)): myargs[i] = portage._unicode_decode(myargs[i]) -- cgit v1.2.3-1-g7c22