Skip to content

Commit

Permalink
Better test that we've got a recent 3.8.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido van Rossum committed Mar 13, 2019
1 parent 42ae5be commit fe5fc8a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mypy/fastparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@
try:
# Check if we can use the stdlib ast module instead of typed_ast.
if sys.version_info >= (3, 8):
assert (sys.version_info > (3, 8, 0, 'alpha', 2)
or sys.version.startswith('3.8.0a2+')
), "Python 3.8.0a1/a2 are not supported"
import ast as ast3
assert 'kind' in ast3.Constant._fields, "This 3.8.0 alpha is too old"
from ast import (
AST,
Call,
Expand Down

0 comments on commit fe5fc8a

Please sign in to comment.