diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-28 13:13:07 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-28 13:13:07 -0700 |
commit | e8da78af846bac21363c85d4bee5d938844843be (patch) | |
tree | 2fb3f4d7baa85d21c47600190c9acd24d68487c0 /pym/_emerge | |
parent | 4198da0184aaec30c41f2e5d2c7af71c4d35b662 (diff) | |
download | portage-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 'pym/_emerge')
-rw-r--r-- | pym/_emerge/main.py | 3 |
1 files changed, 1 insertions, 2 deletions
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]) |