Browse Source

Merge bfd929bac8 into fe92b62f7a

pull/8/merge
Chen Jianzhang 11 months ago
committed by GitHub
parent
commit
0cff904d0d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      importhook/__init__.py

+ 0
- 2
importhook/__init__.py View File

@ -16,7 +16,6 @@ Python module for registering hooks to call when certain modules are imported.
# Import the `socket` module
import socket
"""
import functools
import importlib
import sys
import types
@ -68,7 +67,6 @@ 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


Loading…
Cancel
Save