optimizations. Switch to PyCrypto support in pbkdf2 when possible.

This commit is contained in:
Michele Comitini
2013-07-17 03:01:04 +02:00
parent 1be0f3f468
commit f8c20760d5
3 changed files with 51 additions and 25 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ def custom_importer(name, globals=None, locals=None, fromlist=None, level=-1):
# if not relative and not from applications:
if hasattr(current, 'request') \
and level <= 0 \
and not name.split('.')[0] in INVALID_MODULES \
and not name.partition('.')[0] in INVALID_MODULES \
and isinstance(globals, dict):
import_tb = None
try: