[svn r60140] simplification, Source will invoke inspect.getsource on its own
--HG-- branch : trunk
This commit is contained in:
parent
3ec0a76adb
commit
5c8b04dacb
|
@ -90,8 +90,7 @@ class Code(object):
|
||||||
""" return a py.code.Source object for the code object's source only
|
""" return a py.code.Source object for the code object's source only
|
||||||
"""
|
"""
|
||||||
# return source only for that part of code
|
# return source only for that part of code
|
||||||
import inspect
|
return py.code.Source(self.raw)
|
||||||
return py.code.Source(inspect.getsource(self.raw))
|
|
||||||
|
|
||||||
def getargs(self):
|
def getargs(self):
|
||||||
""" return a tuple with the argument names for the code object
|
""" return a tuple with the argument names for the code object
|
||||||
|
|
Loading…
Reference in New Issue