projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0afeae
)
revert down to 2.3 python requirement via avoiding sorted
author
Brian Harring
<ferringb@gentoo.org>
Tue, 27 Dec 2005 13:15:47 +0000
(13:15 -0000)
committer
Brian Harring
<ferringb@gentoo.org>
Tue, 27 Dec 2005 13:15:47 +0000
(13:15 -0000)
svn path=/main/trunk/; revision=2490
pym/portage_util.py
patch
|
blob
|
history
diff --git
a/pym/portage_util.py
b/pym/portage_util.py
index f45f46b600b6cfc601babe863353df9027bd3116..b5bfda9b7f6ce7b9de747275a3271dd685e245cc 100644
(file)
--- a/
pym/portage_util.py
+++ b/
pym/portage_util.py
@@
-4,6
+4,8
@@
import sys,string,shlex,os.path
+if not hasattr(__builtins__, "set"):
+ from sets import Set as set
noiselimit = 0
def writemsg(mystr,noiselevel=0):
@@
-421,7
+423,8
@@
def unique_array(s):
# so much for linear. abuse sort.
try:
- t = sorted(s)
+ t = list(s)
+ t.sort()
except TypeError:
pass
else: