8000 Fix a straggler filter() call. · python/cpython@85ac28d · GitHub
[go: up one dir, main page]

Skip to content

Commit 85ac28d

Browse files
committed
Fix a straggler filter() call.
1 parent dd6d024 commit 85ac28d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/distutils/fancy_getopt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def wrap_text(text, width):
388388
text = text.expandtabs()
389389
text = text.translate(WS_TRANS)
390390
chunks = re.split(r'( +|-+)', text)
391-
chunks = filter(None, chunks) # ' - ' results in empty strings
391+
chunks = [ch for ch in chunks if ch] # ' - ' results in empty strings
392392
lines = []
393393

394394
while chunks:

0 commit comments

Comments
 (0)
0