#NEWLINE# def get_docs( fileName ) : #NEWLINE# #INDENT# 'Retrieve information from the parse tree of a source file.\n\n    fileName\n        Name of the file to read Python source code from.\n    ' #NEWLINE# source = open ( fileName ) . read ( ) #NEWLINE# import os #NEWLINE# basename = os . path . basename ( os . path . splitext ( fileName ) [ 0 ] ) #NEWLINE# import parser #NEWLINE# ast = parser . suite ( source ) #NEWLINE# tup = parser . ast2tuple ( ast ) #NEWLINE# return ModuleInfo ( tup , ast )