[Python-3000-checkins] r56361 - python/branches/p3yk/Lib/pydoc.py

kurt.kaiser python-3000-checkins at python.org
Sat Jul 14 03:25:24 CEST 2007


Author: kurt.kaiser
Date: Sat Jul 14 03:25:24 2007
New Revision: 56361

Modified:
   python/branches/p3yk/Lib/pydoc.py
Log:
convert a map() iterator to a list to get this working.


Modified: python/branches/p3yk/Lib/pydoc.py
==============================================================================
--- python/branches/p3yk/Lib/pydoc.py	(original)
+++ python/branches/p3yk/Lib/pydoc.py	Sat Jul 14 03:25:24 2007
@@ -989,7 +989,7 @@
         """Indent text by prepending a given prefix to each line."""
         if not text: return ''
         lines = text.split('\n')
-        lines = map(lambda line, prefix=prefix: prefix + line, lines)
+        lines = list(map(lambda line, prefix=prefix: prefix + line, lines))
         if lines: lines[-1] = lines[-1].rstrip()
         return '\n'.join(lines)
 


More information about the Python-3000-checkins mailing list