summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gentoo.org>2005-12-27 13:15:47 +0000
committerBrian Harring <ferringb@gentoo.org>2005-12-27 13:15:47 +0000
commitae31b1bd6c16d13dd48b75bf65dff5cd7b708ec0 (patch)
tree99818b2a2bac8ca31d1a98a1d7be2709fea03228 /pym
parentwhitespace corrections, single space between funcs, double between class bloc... (diff)
downloadportage-multirepo-ae31b1bd6c16d13dd48b75bf65dff5cd7b708ec0.tar.gz
portage-multirepo-ae31b1bd6c16d13dd48b75bf65dff5cd7b708ec0.tar.bz2
portage-multirepo-ae31b1bd6c16d13dd48b75bf65dff5cd7b708ec0.zip
revert down to 2.3 python requirement via avoiding sorted
svn path=/main/trunk/; revision=2490
Diffstat (limited to 'pym')
-rw-r--r--pym/portage_util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py
index f45f46b6..b5bfda9b 100644
--- 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: