DRY using version_info_to_str

This commit is contained in:
rocky
2021-10-23 08:24:35 -04:00
parent 0a9dc57cc9
commit e3369edaed
4 changed files with 9 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env python
from xdis.version_info import PYTHON_VERSION_TRIPLE, IS_PYPY
from xdis.version_info import PYTHON_VERSION_TRIPLE, IS_PYPY, version_tuple_to_str
from uncompyle6.scanner import get_scanner
def bug(state, slotstate):
if state:
@@ -62,6 +62,6 @@ def test_if_in_for():
{'end': 59, 'type': 'for-loop', 'start': 31},
{'end': 63, 'type': 'for-else', 'start': 62}]
else:
print("FIXME: should fix for %s" % ".".join([str(v) for v in PYTHON_VERSION_TRIPLE]))
print("FIXME: should fix for %s" % version_tuple_to_str())
assert True
return