Exemple #1
0
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))
Exemple #2
0
def assembleSource(source, basename, fatal=False):
    source = source.replace('\t', '  ') + '\n'
    return list(parse.assemble(source, basename, fatal=fatal))
Exemple #3
0
def assembleSource(source, basename, fatal=False):
    source = source.replace("\t", "  ") + "\n"
    return list(parse.assemble(source, basename, fatal=fatal))
Exemple #4
0
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))
Exemple #5
0
def assembleSource(source, basename, fatal=False):
    source = source.replace('\t', '  ') + '\n'
    return list(parse.assemble(source, basename, fatal=fatal))