mirror of https://github.com/pyodide/pyodide.git
bump_version.py: `ast.Str` will be removed in Py314 so use `ast.Constant` (#5164)
This commit is contained in:
parent
a5386c86b8
commit
0adc6d050a
|
@ -6,7 +6,7 @@ import functools
|
||||||
import itertools
|
import itertools
|
||||||
import pathlib
|
import pathlib
|
||||||
import re
|
import re
|
||||||
from ast import Str
|
from ast import Constant
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ JS_TARGETS = [
|
||||||
|
|
||||||
|
|
||||||
@functools.lru_cache
|
@functools.lru_cache
|
||||||
def python_version_to_js_version(version: str) -> Str:
|
def python_version_to_js_version(version: str) -> Constant:
|
||||||
"""
|
"""
|
||||||
Convert Python version name to JS version name
|
Convert Python version name to JS version name
|
||||||
These two are different in prerelease or dev versions.
|
These two are different in prerelease or dev versions.
|
||||||
|
|
Loading…
Reference in New Issue