From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kjv9y-0003C7-Ne for garchives@archives.gentoo.org; Sun, 28 Sep 2008 12:13:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91F8CE03E7; Sun, 28 Sep 2008 12:13:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6CE6EE03E7 for ; Sun, 28 Sep 2008 12:13:58 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 4B52D64A5B for ; Sun, 28 Sep 2008 12:13:57 +0000 (UTC) Received: from grobian by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1Kjv9w-00055e-5G for gentoo-commits@lists.gentoo.org; Sun, 28 Sep 2008 12:13:56 +0000 To: gentoo-commits@lists.gentoo.org From: "Fabian Groffen (grobian)" Subject: [gentoo-commits] portage r11579 - main/branches/prefix/pym/portage X-VCS-Repository: portage X-VCS-Revision: 11579 X-VCS-Files: main/branches/prefix/pym/portage/__init__.py X-VCS-Directories: main/branches/prefix/pym/portage X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen Content-Type: text/plain; charset=UTF-8 Message-Id: Sender: Fabian Groffen Date: Sun, 28 Sep 2008 12:13:56 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 17c2d213-a4dd-4577-a93a-da9c0d4387b0 X-Archives-Hash: c9f9d2d1d5607c628d001968c3dbc663 Author: grobian Date: 2008-09-28 12:13:55 +0000 (Sun, 28 Sep 2008) New Revision: 11579 Modified: main/branches/prefix/pym/portage/__init__.py Log: Fix up messing around with lists, sets and frozen sets Modified: main/branches/prefix/pym/portage/__init__.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- main/branches/prefix/pym/portage/__init__.py 2008-09-28 11:08:30 UTC = (rev 11578) +++ main/branches/prefix/pym/portage/__init__.py 2008-09-28 12:13:55 UTC = (rev 11579) @@ -4621,9 +4621,9 @@ eapi =3D str(eapi).split() # note Python's contact for this special cas= e =20 # these are the properties that MUST be present (should) - properties =3D [] + properties =3D set() if portage.const.EAPIPREFIX: - properties.append(portage.const.EAPIPREFIX) # clumpsy temporary soluti= on + properties.add(portage.const.EAPIPREFIX) # clumpsy temporary solution =20 for prop in properties: if prop not in eapi: @@ -4632,9 +4632,9 @@ eapi.remove(prop) =09 # now check if what's left is supported (can) - properties =3D _deprecated_eapis[:] # another clumpsy solution + properties =3D set(_deprecated_eapis) # another clumpsy solution for i in range(portage.const.EAPI + 1): - properties.append(str(i)) + properties.add(str(i)) =20 for v in eapi: if v not in properties: