diff options
| author | Chris McDonough <chrism@plope.com> | 2012-02-18 18:59:58 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-02-18 18:59:58 -0500 |
| commit | 72254a26514966119d2a1d28ea2ac51283ceaa68 (patch) | |
| tree | 24ff30294e252ecc1ac7d58ecf1ccec732c8cddb | |
| parent | 4c49ad3306522ce4b1806ac7175447d7e8a3c3a9 (diff) | |
| download | pyramid-72254a26514966119d2a1d28ea2ac51283ceaa68.tar.gz pyramid-72254a26514966119d2a1d28ea2ac51283ceaa68.tar.bz2 pyramid-72254a26514966119d2a1d28ea2ac51283ceaa68.zip | |
avoid deprecation warning at import
| -rw-r--r-- | pyramid/traversal.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pyramid/traversal.py b/pyramid/traversal.py index 3b2c96021..b514d4c16 100644 --- a/pyramid/traversal.py +++ b/pyramid/traversal.py @@ -9,12 +9,15 @@ from repoze.lru import lru_cache from pyramid.interfaces import ( IResourceURL, - IContextURL, IRequestFactory, ITraverser, VH_ROOT_KEY, ) +with warnings.catch_warnings(): + warnings.filterwarnings('ignore') + from pyramid.interfaces import IContextURL + from pyramid.compat import ( PY3, native_, |
