summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFang-Pen Lin <bornstub@gmail.com>2017-05-22 14:54:46 -0700
committerFang-Pen Lin <bornstub@gmail.com>2017-05-22 14:54:46 -0700
commit96dd805d55c5576778580ff52e978ff8aebc3a04 (patch)
tree98ab3b066fff97fc4bc6d72240fdaeadbb782a20
parent08422ee6340cbcd225dcfc26c7c0aa3165449a58 (diff)
downloadpyramid-96dd805d55c5576778580ff52e978ff8aebc3a04.tar.gz
pyramid-96dd805d55c5576778580ff52e978ff8aebc3a04.tar.bz2
pyramid-96dd805d55c5576778580ff52e978ff8aebc3a04.zip
Load difflib on-demand so that it won’t take message proactively
-rw-r--r--pyramid/config/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/config/util.py b/pyramid/config/util.py
index d09d37d94..63f06ff9b 100644
--- a/pyramid/config/util.py
+++ b/pyramid/config/util.py
@@ -1,4 +1,3 @@
-from difflib import get_close_matches
from hashlib import md5
import inspect
@@ -153,6 +152,7 @@ class PredicateList(object):
weights.append(1 << n + 1)
preds.append(pred)
if kw:
+ from difflib import get_close_matches
closest = []
names = [ name for name, _ in ordered ]
for name in kw: