Revision 362 org.gvsig.scripting.app/trunk/org.gvsig.scripting.app/org.gvsig.scripting.app.extension/src/main/resources/scripting/lib/console/inspect.py
inspect.py | ||
---|---|---|
736 | 736 |
|
737 | 737 |
def getlineno(frame): |
738 | 738 |
"""Get the line number from a frame object, allowing for optimization.""" |
739 |
# Written by Marc-Andr? Lemburg; revised by Jim Hugunin and Fredrik Lundh.
|
|
739 |
# Written by Marc-Andre Lemburg; revised by Jim Hugunin and Fredrik Lundh.
|
|
740 | 740 |
lineno = frame.f_lineno |
741 | 741 |
code = frame.f_code |
742 | 742 |
if hasattr(code, 'co_lnotab'): |
Also available in: Unified diff