#NEWLINE# def getsource( pyObject ) : #NEWLINE# #INDENT# 'Return the text of the source code for an object.\n\n    The argument may be a module, class, method, function, traceback, frame,\n    or code object.  The source code is returned as a single string.  An\n    IOError is raised if the source code cannot be retrieved.' #NEWLINE# ( lines , _ ) = getsourcelines ( pyObject ) #NEWLINE# return string . join ( lines , '' )