blob: e787b0ee85b982f996a7a2939dda40766031c9c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
"""passlib.hash stub
NOTE:
this module does not actually contain any hashes.
this file is a stub which is replaced by a proxy object,
which lazy-loads hashes as requested.
the actually implementations of hashes (at least, those built into passlib)
are stored in the passlib.handlers subpackage.
"""
#NOTE: could support 'non-lazy' version which just imports
# all schemes known to list_crypt_handlers()
#=========================================================
#import special proxy object as 'passlib.hash' module
#=========================================================
#import proxy object, and replace this module with it.
#this should cause any import commands to return that object,
#not this module
from passlib.registry import _proxy
import sys
sys.modules['passlib.hash'] = _proxy
del sys, _proxy
#=========================================================
#eoc
#=========================================================
|