Skip to content

Commit 2c017d5

Browse files
committed
Fix merge conflict
1 parent 1eb3787 commit 2c017d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

aikido_zen/sinks/builtins_import.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
@after
1111
def _import(func, instance, args, kwargs, return_value):
12+
if not hasattr(return_value, "__file__"):
13+
return # Would be built-in into the interpreter (system package)
14+
15+
if not hasattr(return_value, "__package__"):
16+
return
17+
1218
try:
1319
if running_import_scan.get():
1420
return

0 commit comments

Comments
 (0)