Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Commit

Permalink
Updated setup.py to make it build with python 3.7. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
RatanShreshtha authored and pquentin committed Oct 22, 2018
1 parent e9fe007 commit c4b1fe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Expand Up @@ -6,7 +6,7 @@
import os
import re
import tokenize as std_tokenize
from tokenize import ASYNC, AWAIT, NAME, NEWLINE, NL, STRING, ENCODING
from tokenize import NAME, NEWLINE, NL, STRING, ENCODING
import codecs


Expand Down Expand Up @@ -60,8 +60,8 @@ def bleach_tokens(tokens):
# TODO __await__, ...?
used_space = None
for space, toknum, tokval in tokens:
if toknum in [ASYNC, AWAIT]: # TODO Python 3.7+
# When remove async or await, we want to use the whitespace that
if tokval in ["async", "await"]:
# When removing async or await, we want to use the whitespace that
# was before async/await before the next token so that
# `print(await stuff)` becomes `print(stuff)` and not
# `print( stuff)`
Expand Down

0 comments on commit c4b1fe2

Please sign in to comment.