From c10d60d57fc5c3f0eff217f216ce4f0a0897cb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Thu, 26 Jun 2008 22:37:56 +0200 Subject: Removed '__find_resolved_unresolved' as it is quite useless. Also removed the "find_packages::ws" and moved the content into "world" and "system" to prepare for exchangebility. --- portato/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato/helper.py') diff --git a/portato/helper.py b/portato/helper.py index 31e25d9..145716e 100644 --- a/portato/helper.py +++ b/portato/helper.py @@ -110,7 +110,6 @@ def unique_array(s): """Stolen from portage_utils: lifted from python cookbook, credit: Tim Peters Return a list of the elements in s in arbitrary order, sans duplicates""" - n = len(s) # assume all elements are hashable, if so, it's linear try: return list(set(s)) @@ -124,6 +123,7 @@ def unique_array(s): except TypeError: pass else: + n = len(s) assert n > 0 last = t[0] lasti = i = 1 -- cgit v1.2.3