[svn r59464] Fix for a corner case: when the arguments are 'del'-eted from
the local scope. This can also occur when using Psyco because f_locals is then empty. --HG-- branch : trunk
This commit is contained in:
parent
96ff172661
commit
03f51e5edb
|
@ -50,6 +50,9 @@ class Frame(object):
|
||||||
"""
|
"""
|
||||||
retval = []
|
retval = []
|
||||||
for arg in self.code.getargs():
|
for arg in self.code.getargs():
|
||||||
|
try:
|
||||||
retval.append((arg, self.f_locals[arg]))
|
retval.append((arg, self.f_locals[arg]))
|
||||||
|
except KeyError:
|
||||||
|
pass # this can occur when using Psyco
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue