Skip to content

Commit b330d40

Browse files
committed
Use constant for version test
1 parent 3eccad7 commit b330d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astroid/modutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
from functools import lru_cache
3333
from pathlib import Path
3434

35-
from astroid.const import IS_JYTHON, IS_PYPY
35+
from astroid.const import IS_JYTHON, IS_PYPY, PY310_PLUS
3636
from astroid.interpreter._import import spec, util
3737

38-
if sys.version_info >= (3, 10):
38+
if PY310_PLUS:
3939
from sys import stdlib_module_names
4040
else:
4141
from astroid._backport_stdlib_names import stdlib_module_names

0 commit comments

Comments
 (0)