Skip to content

Commit

Permalink
Align with master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Apr 25, 2024
1 parent 60740b3 commit 12fc30a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions paste/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

import warnings

try:
import pkg_resources
pkg_resources.declare_namespace(__name__)
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=DeprecationWarning)
import pkg_resources
pkg_resources.declare_namespace(__name__)
except (AttributeError, ImportError):
# don't prevent use of paste if pkg_resources isn't installed
from pkgutil import extend_path
Expand Down

0 comments on commit 12fc30a

Please sign in to comment.