diff options
| author | Guido van Rossum <guido@python.org> | 2007-09-25 21:48:09 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-09-25 21:48:09 +0000 |
| commit | 4cb4040d3e7687c6e5ec99a6a52217ca9091db9a (patch) | |
| tree | f80fbafd08320620cd8aa3d9f534132e946758bb | |
| parent | 02aa5e870e7910a62c992c30eaced5ef448d43fa (diff) | |
| download | python-setuptools-git-4cb4040d3e7687c6e5ec99a6a52217ca9091db9a.tar.gz | |
Fix a straggler filter() call.
| -rw-r--r-- | fancy_getopt.py | 2 |
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: |
