Skip to content

Commit

Permalink
Merge pull request #4212 from pypa/refactor/compat-module
Browse files Browse the repository at this point in the history
Move compatibility modules into a compat package.
  • Loading branch information
jaraco authored Feb 8, 2024
2 parents 7315375 + 5d6120a commit c0fd10e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
DEVELOP_DIST,
)
import pkg_resources
from .. import py312compat
from ..compat import py311
from .._path import ensure_directory
from ..extern.jaraco.text import yield_lines

Expand Down Expand Up @@ -2329,7 +2329,7 @@ def load_launcher_manifest(name):


def _rmtree(path, ignore_errors=False, onexc=auto_chmod):
return py312compat.shutil_rmtree(path, ignore_errors, onexc)
return py311.shutil_rmtree(path, ignore_errors, onexc)


def current_umask():
Expand Down
Empty file added setuptools/compat/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion setuptools/config/pyprojecttoml.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


def load_file(filepath: _Path) -> dict:
from ..py311compat import tomllib
from ..compat.py310 import tomllib

with open(filepath, "rb") as file:
return tomllib.load(file)
Expand Down

0 comments on commit c0fd10e

Please sign in to comment.