This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
importhook
mirror of
https://github.com/brettlangdon/importhook.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
4
Wiki
Activity
Browse Source
Remove meaningless `@functools.wraps`
pull/8/head
Jeza
1 year ago
parent
fe92b62f7a
commit
5a49181d65
1 changed files
with
0 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save