[svn r60140] simplification, Source will invoke inspect.getsource on its own

--HG--
branch : trunk
This commit is contained in:
pedronis 2008-11-25 18:32:05 +01:00
parent 3ec0a76adb
commit 5c8b04dacb
1 changed files with 1 additions and 2 deletions

View File

@ -90,8 +90,7 @@ class Code(object):
""" return a py.code.Source object for the code object's source only
"""
# return source only for that part of code
import inspect
return py.code.Source(inspect.getsource(self.raw))
return py.code.Source(self.raw)
def getargs(self):
""" return a tuple with the argument names for the code object