Skip to content

Commit 5856801

Browse files
committed
Silence setuptools deprecation warning
1 parent 63a89ef commit 5856801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pip_deepfreeze/env-info-json.py

+2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525

2626

2727
try:
28+
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
2829
import pkg_resources # noqa
30+
warnings.resetwarnings()
2931
except ImportError:
3032
pkg_resources = None
3133

0 commit comments

Comments
 (0)