Skip to content

Commit

Permalink
Load difflib on-demand so that it won’t take message proactively
Browse files Browse the repository at this point in the history
  • Loading branch information
fangpenlin committed May 22, 2017
1 parent 08422ee commit 96dd805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyramid/config/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from difflib import get_close_matches
from hashlib import md5
import inspect

Expand Down Expand Up @@ -153,6 +152,7 @@ def make(self, config, **kw):
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:
Expand Down

0 comments on commit 96dd805

Please sign in to comment.