[Python-checkins] r75865 - sandbox/trunk/2to3/lib2to3/fixes/fix_map.py

benjamin.peterson python-checkins at python.org
Tue Oct 27 21:49:00 CET 2009


Author: benjamin.peterson
Date: Tue Oct 27 21:49:00 2009
New Revision: 75865

Log:
explain reason for warning

Modified:
   sandbox/trunk/2to3/lib2to3/fixes/fix_map.py

Modified: sandbox/trunk/2to3/lib2to3/fixes/fix_map.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixes/fix_map.py	(original)
+++ sandbox/trunk/2to3/lib2to3/fixes/fix_map.py	Tue Oct 27 21:49:00 2009
@@ -78,7 +78,8 @@
                        args.children[0].type == token.NAME and \
                        args.children[0].value == "None":
                         self.warning(node, "cannot convert map(None, ...) "
-                                     "with multiple arguments")
+                                     "with multiple arguments because map() "
+                                     "now truncates to the shortest sequence")
                         return
                 if in_special_context(node):
                     return None


More information about the Python-checkins mailing list