Skip to content

Commit f470aa1

Browse files
jb2170johnslavik
andauthored
shlex.quote: improve formatting
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
1 parent 2a301a5 commit f470aa1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/shlex.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,7 @@ def quote(s, *, force=False):
334334
b'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'
335335
b'abcdefghijklmnopqrstuvwxyz')
336336
if (not force
337-
and s.isascii() and not s.encode().translate(None, delete=safe_chars)
338-
):
337+
and s.isascii() and not s.encode().translate(None, delete=safe_chars)):
339338
# No quoting is needed if we're not forcing quoting
340339
# and `s` is an ASCII string consisting only of `safe_chars`
341340
return s

0 commit comments

Comments
 (0)