[Python-checkins] r75736 - sandbox/trunk/2to3/lib2to3/fixes/fix_map.py
benjamin.peterson
python-checkins at python.org
Mon Oct 26 22:29:03 CET 2009
Author: benjamin.peterson
Date: Mon Oct 26 22:29:02 2009
New Revision: 75736
Log:
using get() here is a bit pointless
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 Mon Oct 26 22:29:02 2009
@@ -65,9 +65,9 @@
new.prefix = u""
new = Call(Name(u"list"), [new])
elif "map_lambda" in results:
- new = ListComp(results.get("xp").clone(),
- results.get("fp").clone(),
- results.get("it").clone())
+ new = ListComp(results["xp"].clone(),
+ results["fp"].clone(),
+ results["it"].clone())
else:
if "map_none" in results:
new = results["arg"].clone()
More information about the Python-checkins
mailing list