def assembleClass(filename, fatal=False): basename = os.path.basename(filename) with open(filename, 'rU') as f: source = f.read() source = source.replace('\t', ' ') + '\n' return list(parse.assemble(source, basename, fatal=fatal))
def assembleSource(source, basename, fatal=False): source = source.replace('\t', ' ') + '\n' return list(parse.assemble(source, basename, fatal=fatal))
def assembleSource(source, basename, fatal=False): source = source.replace("\t", " ") + "\n" return list(parse.assemble(source, basename, fatal=fatal))