mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-09 21:12:42 +08:00
Add normalizer support for E701-E704.
This commit is contained in:
21
test/normalizer_issue_files/E70.py
Normal file
21
test/normalizer_issue_files/E70.py
Normal file
@@ -0,0 +1,21 @@
|
||||
#: E701:6
|
||||
if a: a = False
|
||||
#: E701:41
|
||||
if not header or header[:6] != 'bytes=': return
|
||||
#: E702:9
|
||||
a = False; b = True
|
||||
#: E702:16 E402
|
||||
import bdist_egg; bdist_egg.write_safety_flag(cmd.egg_info, safe)
|
||||
#: E703:12 E402
|
||||
import shlex;
|
||||
#: E702:8 E703:22
|
||||
del a[:]; a.append(42);
|
||||
#: E704:10
|
||||
def f(x): return 2
|
||||
#: E704:16
|
||||
async def f(x): return 2
|
||||
#: E704:10
|
||||
def f(x): return 2 * x
|
||||
while all is round:
|
||||
#: E704:10
|
||||
def f(x): return 2 * x
|
||||
Reference in New Issue
Block a user