formats the outer frame 'number' to output like:
In file foo.py, line 8:
process.aPath = cms.Path(module1*module2)
'number' is the number of frames to go back relative to caller.
Definition at line 13 of file ExceptionHandling.py.
15 """formats the outer frame 'number' to output like:
16 In file foo.py, line 8:
17 process.aPath = cms.Path(module1*module2)
19 'number' is the number of frames to go back relative to caller.
21 frame = inspect.stack()[number+1]
22 return "In file %s, line %s:\n %s" %(frame[1], frame[2], frame[4][0])