summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-09-25 21:48:09 (GMT)
committerGuido van Rossum <guido@python.org>2007-09-25 21:48:09 (GMT)
commit85ac28d7880a35a95576dc81a87ba81eef1c4a1c (patch)
tree318cd913cdd20aa905b4c14347d77cca393a3854 /Lib
parentdd6d0247e9f2deb4e141eafa449c82863b2ec658 (diff)
downloadcpython-85ac28d7880a35a95576dc81a87ba81eef1c4a1c.zip
cpython-85ac28d7880a35a95576dc81a87ba81eef1c4a1c.tar.gz
cpython-85ac28d7880a35a95576dc81a87ba81eef1c4a1c.tar.bz2
Fix a straggler filter() call.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/fancy_getopt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/fancy_getopt.py b/Lib/distutils/fancy_getopt.py
index 15cbdd7..b3231c3 100644
--- a/Lib/distutils/fancy_getopt.py
+++ b/Lib/distutils/fancy_getopt.py
@@ -388,7 +388,7 @@ def wrap_text(text, width):
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: