projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0202f59
)
Fix case for 0 args in args unicode conversion.
author
Zac Medico
<zmedico@gentoo.org>
Mon, 21 Sep 2009 15:44:51 +0000
(15:44 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 21 Sep 2009 15:44:51 +0000
(15:44 -0000)
svn path=/main/trunk/; revision=14326
pym/_emerge/main.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/main.py
b/pym/_emerge/main.py
index 83b50df633b83475dcc66aa3c4a4e03cc989fd11..6ac1b50eb59c6122fc5099755eae37af29d1e6a4 100644
(file)
--- 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])