Skip to content

Commit

Permalink
Allow imports of setuptools.dep_util.newer_group with deprecation war…
Browse files Browse the repository at this point in the history
…ning (#4127)
  • Loading branch information
abravalheri committed Nov 21, 2023
2 parents 536d4a8 + 7d90e9f commit 28775f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions newsfragments/4126.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed imports of ``setuptools.dep_util.newer_group``.
A deprecation warning is issued instead of a hard failure.
2 changes: 1 addition & 1 deletion setuptools/dep_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def __getattr__(name):
if name not in ['newer_pairwise_group']:
if name not in ['newer_group', 'newer_pairwise_group']:
raise AttributeError(name)
warnings.warn(
"dep_util is Deprecated. Use functions from setuptools.modified instead.",
Expand Down

0 comments on commit 28775f3

Please sign in to comment.