diff options
author | Tony Wang <wwwjfy@gmail.com> | 2018-11-24 22:51:43 +0800 |
---|---|---|
committer | Tony Wang <wwwjfy@gmail.com> | 2018-11-24 22:51:43 +0800 |
commit | 65a41840dc24bdbf2975bd28c773f758ade254f4 (patch) | |
tree | 337e3982336e3c0c0cea7f137f9ebd2f9aa8cd4d /pycodestyle.py | |
parent | 3d37ea0aa2e369852c98bbbcaef8a89ed00996dc (diff) | |
download | pep8-65a41840dc24bdbf2975bd28c773f758ade254f4.tar.gz |
refs W606, only NAME can follow await
await NUMBER or await STRING is not valid syntax
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index c9e1667..73f4076 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -1580,7 +1580,7 @@ def python_3000_async_await_keywords(logical_line, tokens): else: error = True elif state[0] == 'await': - if token_type in (tokenize.NAME, tokenize.NUMBER, tokenize.STRING): + if token_type == tokenize.NAME: # An await expression. Return to looking for async/await # names. state = None |