Skip to content

Commit dcde7fd

Browse files
committed
🐍 Adjusts import declarations
1 parent 216bf4c commit dcde7fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

inject_javascript/lib/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/usr/bin/env python3
22

33

4-
from inspect import currentframe as Inspect_currentframe
4+
from inspect import currentframe
55

66

77
def notice(message):
88
"""
99
Custom warning notifier
1010
"""
11-
caller = Inspect_currentframe().f_back.f_code.co_name
12-
lineno = Inspect_currentframe().f_back.f_lineno
11+
caller = currentframe().f_back.f_code.co_name
12+
lineno = currentframe().f_back.f_lineno
1313
msg = 'Notice: {0} {1}\n\t{2}'.format(lineno, caller, message)
1414
print(msg)
1515

@@ -18,7 +18,7 @@ def error(message):
1818
"""
1919
Cusotm Exception _thrower_
2020
"""
21-
caller = Inspect_currentframe().f_back.f_code.co_name
22-
lineno = Inspect_currentframe().f_back.f_lineno
21+
caller = currentframe().f_back.f_code.co_name
22+
lineno = currentframe().f_back.f_lineno
2323
msg = '\n\t{0} {1} reports: {2}'.format(lineno, caller, message)
2424
raise Exception(msg)

0 commit comments

Comments
 (0)