Skip to content

Commit ffa52ce

Browse files
committed
Remove PYTHON_VERSION
1 parent ea762a2 commit ffa52ce

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

admin-tools/pyenv-newer-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ if [[ $0 == ${BASH_SOURCE[0]} ]] ; then
77
exit 1
88
fi
99

10-
export PYVERSIONS='3.6.14 3.7.12 3.8.12 3.9.6'
10+
export PYVERSIONS='3.6.15 3.7.12 3.8.12 3.9.9'

trepan/processor/cmdfns.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
on/off setting value.
1919
"""
2020
import os, sys, tempfile
21-
import pyficache
22-
from xdis import IS_PYPY, PYTHON_VERSION
21+
from xdis import IS_PYPY, PYTHON_VERSION_TRIPLE
2322

2423

2524
def source_tempfile_remap(prefix, text, tempdir=None):
@@ -35,7 +34,7 @@ def source_tempfile_remap(prefix, text, tempdir=None):
3534

3635
def deparse_fn(code):
3736
try:
38-
if 3.7 <= PYTHON_VERSION <= 3.8:
37+
if (3, 7) <= PYTHON_VERSION_TRIPLE <= (3, 8):
3938
from uncompyle6.semantics.linemap import (
4039
deparse_code_with_fragments_and_map as deparse_code,
4140
)
@@ -46,10 +45,8 @@ def deparse_fn(code):
4645

4746
except ImportError:
4847
return None
49-
sys_version = sys.version[:5]
5048
try:
51-
float_version = py_str2float(sys_version)
52-
deparsed = deparse_code(float_version, code, is_pypy=IS_PYPY)
49+
deparsed = deparse_code(PYTHON_VERSION_TRIPLE, code, is_pypy=IS_PYPY)
5350
return deparsed
5451
except:
5552
raise

0 commit comments

Comments
 (0)