From 63dd14fdb7fb6b4ac7c57d9b21c3eb52ecc1c5da Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 28 Sep 2008 12:13:55 +0000 Subject: [PATCH] Fix up messing around with lists, sets and frozen sets svn path=/main/branches/prefix/; revision=11579 --- pym/portage/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 175f00e8f..a24220cc2 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4621,9 +4621,9 @@ def eapi_is_supported(eapi): eapi = str(eapi).split() # note Python's contact for this special case # these are the properties that MUST be present (should) - properties = [] + properties = set() if portage.const.EAPIPREFIX: - properties.append(portage.const.EAPIPREFIX) # clumpsy temporary solution + properties.add(portage.const.EAPIPREFIX) # clumpsy temporary solution for prop in properties: if prop not in eapi: @@ -4632,9 +4632,9 @@ def eapi_is_supported(eapi): eapi.remove(prop) # now check if what's left is supported (can) - properties = _deprecated_eapis[:] # another clumpsy solution + properties = set(_deprecated_eapis) # another clumpsy solution for i in range(portage.const.EAPI + 1): - properties.append(str(i)) + properties.add(str(i)) for v in eapi: if v not in properties: -- 2.26.2