summaryrefslogtreecommitdiff
path: root/fancy_getopt.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-09-25 21:48:09 +0000
committerGuido van Rossum <guido@python.org>2007-09-25 21:48:09 +0000
commit4cb4040d3e7687c6e5ec99a6a52217ca9091db9a (patch)
treef80fbafd08320620cd8aa3d9f534132e946758bb /fancy_getopt.py
parent02aa5e870e7910a62c992c30eaced5ef448d43fa (diff)
downloadpython-setuptools-git-4cb4040d3e7687c6e5ec99a6a52217ca9091db9a.tar.gz
Fix a straggler filter() call.
Diffstat (limited to 'fancy_getopt.py')
-rw-r--r--fancy_getopt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fancy_getopt.py b/fancy_getopt.py
index 15cbdd71..b3231c3d 100644
--- a/fancy_getopt.py
+++ b/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: