Skip to content

Commit 520c7ae

Browse files
authored
Fix deprecation comment - recommendation is to import directly (#1341)
1 parent 81d1683 commit 520c7ae

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/tox/config/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,9 @@
4646

4747

4848
hookimpl = tox.hookimpl
49-
"""DEPRECATED - REMOVE - this is left for compatibility with plugins importing this from here.
49+
"""DEPRECATED - REMOVE - left for compatibility with plugins importing from here.
5050
51-
Instead create a hookimpl in your code with:
52-
53-
import pluggy
54-
hookimpl = pluggy.HookimplMarker("tox")
51+
Import hookimpl directly from tox instead.
5552
"""
5653

5754
default_factors = tox.PYTHON.DEFAULT_FACTORS

0 commit comments

Comments
 (0)