Skip to content

Commit

Permalink
Merge pull request #133 from sbidoul/dont-import-pkg-resources
Browse files Browse the repository at this point in the history
Silence pkg_resources deprecation warning
  • Loading branch information
sbidoul authored Jan 8, 2024
2 parents 63a89ef + 550644f commit 6989350
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pip_deepfreeze/env-info-json.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import json
import os
import sys
import warnings

try:
from typing import Dict, Optional, Union
Expand All @@ -25,7 +26,9 @@


try:
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
import pkg_resources # noqa
warnings.resetwarnings()
except ImportError:
pkg_resources = None

Expand Down

0 comments on commit 6989350

Please sign in to comment.