No known key found for this signature in database
GPG Key ID: B664881177781B04
1 changed files with
2 additions and
0 deletions
-
importhook/__init__.py
|
|
|
@ -68,8 +68,10 @@ def on_import(module_name, func=None): |
|
|
|
importhook.on_import('httplib', on_httplib_import) |
|
|
|
""" |
|
|
|
if func is None: |
|
|
|
@functools.wraps(func) |
|
|
|
def decorator(func): |
|
|
|
registry[module_name] = func |
|
|
|
return func |
|
|
|
return decorator |
|
|
|
else: |
|
|
|
registry[module_name] = func |
|
|
|
|