summaryrefslogtreecommitdiff
path: root/astroid/_ast.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-21 19:26:48 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-06-21 20:16:51 +0200
commita1ac842bf51371a54fad1c13d56abe33ec1b9dcc (patch)
treeb2aae0d2d65d1f39e3b33e55264ad85677d9fb3e /astroid/_ast.py
parent6a18c1018c305148fde423e167ff783754b2be75 (diff)
downloadastroid-git-a1ac842bf51371a54fad1c13d56abe33ec1b9dcc.tar.gz
Rename non obvious PY3X constant to PY3X_PLUS
See https://github.com/PyCQA/astroid/pull/1069\#issuecomment-865206120
Diffstat (limited to 'astroid/_ast.py')
-rw-r--r--astroid/_ast.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/_ast.py b/astroid/_ast.py
index 5a770516..37f87835 100644
--- a/astroid/_ast.py
+++ b/astroid/_ast.py
@@ -4,7 +4,7 @@ from collections import namedtuple
from functools import partial
from typing import Dict, Optional
-from astroid.const import PY38, Context
+from astroid.const import PY38_PLUS, Context
try:
import typed_ast.ast3 as _ast_py3
@@ -12,7 +12,7 @@ except ImportError:
_ast_py3 = None
-if PY38:
+if PY38_PLUS:
# On Python 3.8, typed_ast was merged back into `ast`
_ast_py3 = ast
@@ -35,7 +35,7 @@ class ParserModule(
):
def parse(self, string: str, type_comments=True):
if self.module is _ast_py3:
- if PY38:
+ if PY38_PLUS:
parse_func = partial(self.module.parse, type_comments=type_comments)
else:
parse_func = partial(