From: Zac Medico Date: Mon, 21 Sep 2009 15:44:51 +0000 (-0000) Subject: Fix case for 0 args in args unicode conversion. X-Git-Tag: v2.2_rc42~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31505dfc2b6a6a0533123fe43d2240aab177d7c4;p=portage.git Fix case for 0 args in args unicode conversion. svn path=/main/trunk/; revision=14326 --- diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 83b50df63..6ac1b50eb 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -769,7 +769,8 @@ def parse_opts(tmpcmdline, silent=False): if myaction is None and myoptions.deselect is True: myaction = 'deselect' - if sys.hexversion < 0x3000000 and not isinstance(myargs[0], unicode): + if myargs and sys.hexversion < 0x3000000 and \ + not isinstance(myargs[0], unicode): for i in range(len(myargs)): myargs[i] = portage._unicode_decode(myargs[i])