Message3445

Author wesleys
Recipients wesleys
Date 2008-08-22.10:31:26
SpamBayes Score 1.3846374e-06
Marked as misclassified No
Message-id <1219401087.16.0.702597170458.issue1109@psf.upfronthosting.co.za>
In-reply-to
Content
I have the following function:

    def _cmd(self, type, *args):
        calling = inspect.stack()[1][3]
        print calling.replace("2", "To")
        #return self.cmd("create" + type + self.cmd_prefix, *args)

Jython 2.2.1:
snapshotTosnaphot

Jython 2.5a1:
Traceback (most recent call last):
  File "./pylogic.py", line 53, in <module>
    test_audit_jobs()
  File "./pylogic.py", line 38, in test_audit_jobs
    k.snapshot2snaphot("test")
  File "./../lib/OSS/bladelogic/AuditJob.py", line 24, in snapshot2snaphot
    return self._cmd("SnapshotToSnapshot", *args)
  File "./../lib/OSS/bladelogic/AuditJob.py", line 19, in _cmd
    calling = inspect.stack()[1][3]
  File "/opt/bladelogic/jython/Lib/inspect.py", line 888, in stack
    return getouterframes(sys._getframe(1), context)
  File "/opt/bladelogic/jython/Lib/inspect.py", line 869, in getouterframes
    framelist.append((frame,) + getframeinfo(frame, context))
  File "/opt/bladelogic/jython/Lib/inspect.py", line 844, in getframeinfo
    lines, lnum = findsource(frame)
  File "/opt/bladelogic/jython/Lib/inspect.py", line 510, in findsource
    if pat.match(lines[lnum]): break
IndexError: index out of range: 138
History
Date User Action Args
2008-08-22 10:31:27wesleyssetrecipients: + wesleys
2008-08-22 10:31:27wesleyssetmessageid: <1219401087.16.0.702597170458.issue1109@psf.upfronthosting.co.za>
2008-08-22 10:31:27wesleyslinkissue1109 messages
2008-08-22 10:31:26wesleyscreate