File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
33
4- from inspect import currentframe as Inspect_currentframe
4+ from inspect import currentframe
55
66
77def 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 )
You can’t perform that action at this time.
0 commit comments