Fix W504 and disable W503 (closes #20863)
This commit is contained in:
parent
d23e85515a
commit
3089bc748c
49 changed files with 211 additions and 211 deletions
|
@ -2649,9 +2649,9 @@ else:
|
|||
|
||||
try:
|
||||
args = shlex.split('中文')
|
||||
assert (isinstance(args, list) and
|
||||
isinstance(args[0], compat_str) and
|
||||
args[0] == '中文')
|
||||
assert (isinstance(args, list)
|
||||
and isinstance(args[0], compat_str)
|
||||
and args[0] == '中文')
|
||||
compat_shlex_split = shlex.split
|
||||
except (AssertionError, UnicodeEncodeError):
|
||||
# Working around shlex issue with unicode strings on some python 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue