From: Brian Harring Date: Tue, 27 Dec 2005 13:15:47 +0000 (-0000) Subject: revert down to 2.3 python requirement via avoiding sorted X-Git-Tag: v2.1_pre3~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ae31b1bd6c16d13dd48b75bf65dff5cd7b708ec0;p=portage.git revert down to 2.3 python requirement via avoiding sorted svn path=/main/trunk/; revision=2490 --- 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: