Browse Source

Remove meaningless `@functools.wraps`

pull/8/head
Jeza 1 year ago
parent
commit
5a49181d65
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      importhook/__init__.py

+ 0
- 1
importhook/__init__.py View File

@ -68,7 +68,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