def get_docs(fileName):
 source = open(fileName).read()
 basename = os.path.basename(os.path.splitext(fileName)[0])
 ast = parser.suite(source)
 return ModuleInfo(ast.totuple(), basename)

def get_docs ( fileName ) : source = open ( fileName ) . read ( ) basename = os . path . basename ( os . path . splitext ( fileName ) [ 0 ] ) ast = parser . suite ( source ) return ModuleInfo ( ast . totuple ( ) , basename )
retrieve information from the parse tree of a source file .