Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] Fix warning for lib2to3/fixes/fix_map.py
Date: Fri, 15 Aug 2008 18:02:40
Message-Id: 48A5C4B8.8070407@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] Fix warning for lib2to3/fixes/fix_map.py by Ali Polatel
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Ali Polatel wrote:
5 > 2to3 gives a warning while converting portage codebase using map¹ fix:
6 > RefactoringTool: Warnings/messages while refactoring:
7 > RefactoringTool: ### In file ./pym/portage/dbapi/porttree.py ###
8 > RefactoringTool: Line 266: You should use a for loop here
9 >
10 > This is a valid warning because map() will change in py3k. Read the docstring of
11 > fix_map.py for more information.
12 >
13 > ¹: http://svn.python.org/view/python/trunk/Lib/lib2to3/fixes/fix_map.py
14
15 Applied, thanks.
16
17 - --
18 Thanks,
19 Zac
20 -----BEGIN PGP SIGNATURE-----
21 Version: GnuPG v2.0.9 (GNU/Linux)
22
23 iEYEARECAAYFAkilxLcACgkQ/ejvha5XGaMC4wCg2/a8N2jZcC8X5wzGon3a0PNE
24 Mo8AoLks+4IMVXUkAFTVfNGnM0XckT3s
25 =KvEC
26 -----END PGP SIGNATURE-----