Author: guido.van.rossum
Date: Tue Sep 25 23:48:09 2007
New Revision: 58253

Modified:
   python/branches/py3k/Lib/distutils/fancy_getopt.py
Log:
Fix a straggler filter() call.


Modified: python/branches/py3k/Lib/distutils/fancy_getopt.py
==============================================================================
--- python/branches/py3k/Lib/distutils/fancy_getopt.py  (original)
+++ python/branches/py3k/Lib/distutils/fancy_getopt.py  Tue Sep 25 23:48:09 2007
@@ -388,7 +388,7 @@
     text = text.expandtabs()
     text = text.translate(WS_TRANS)
     chunks = re.split(r'( +|-+)', text)
-    chunks = filter(None, chunks)      # ' - ' results in empty strings
+    chunks = [ch for ch in chunks if ch] # ' - ' results in empty strings
     lines = []
 
     while chunks:
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to