[Python-3000-checkins] r58253 - python/branches/py3k/Lib/distutils/fancy_getopt.py
guido.van.rossum
python-3000-checkins at python.org
Tue Sep 25 23:48:10 CEST 2007
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:
More information about the Python-3000-checkins
mailing list