Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Portage Developer (http://www.linux-archive.org/gentoo-portage-developer/)
-   -   Fix warning for lib2to3/fixes/fix_map.py (http://www.linux-archive.org/gentoo-portage-developer/143609-fix-warning-lib2to3-fixes-fix_map-py.html)

Zac Medico 08-15-2008 06:02 PM

Fix warning for lib2to3/fixes/fix_map.py
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ali Polatel wrote:
> 2to3 gives a warning while converting portage codebase using map╣ fix:
> RefactoringTool: Warnings/messages while refactoring:
> RefactoringTool: ### In file ./pym/portage/dbapi/porttree.py ###
> RefactoringTool: Line 266: You should use a for loop here
>
> This is a valid warning because map() will change in py3k. Read the docstring of
> fix_map.py for more information.
>
> ╣: http://svn.python.org/view/python/trunk/Lib/lib2to3/fixes/fix_map.py

Applied, thanks.

- --
Thanks,
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkilxLcACgkQ/ejvha5XGaMC4wCg2/a8N2jZcC8X5wzGon3a0PNE
Mo8AoLks+4IMVXUkAFTVfNGnM0XckT3s
=KvEC
-----END PGP SIGNATURE-----


All times are GMT. The time now is 11:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.