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

Updated setup.py to make it build with python 3.7. #59

Merged
merged 4 commits into from Oct 22, 2018
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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"]: # TODO Python 3.7+
pquentin marked this conversation as resolved.
Show resolved Hide resolved
# 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