summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 f45f46b60..b5bfda9b7 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: