Skip to content

Commit 88b811e

Browse files
committed
feat: re-add removed variables
These are used in fetch.py. Were removed in 267fd1c but the fetch.py code has not yet been updated to work without these. Should also fix pypi#48
1 parent a10ab98 commit 88b811e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

stdlib_list/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
# Import all the things that used to be in here for backwards-compatibility reasons
77
from .base import (
8+
base_dir,
9+
list_dir,
810
stdlib_list,
911
in_stdlib,
1012
get_canonical_version,

stdlib_list/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
from functools32 import lru_cache
1111

1212
long_versions = ["2.6.9", "2.7.9", "3.2.6", "3.3.6", "3.4.3", "3.5", "3.6",
13-
"3.7", "3.8", "3.9"]
13+
"3.7", "3.8", "3.9", "3.10"]
1414

1515
short_versions = [".".join(x.split(".")[:2]) for x in long_versions]
1616

17+
base_dir = os.path.dirname(os.path.realpath(__file__))
18+
list_dir = os.path.join(base_dir, "lists")
1719

1820
def get_canonical_version(version):
1921

0 commit comments

Comments
 (0)