build-tools/clean_gtkw.py
def clean_line(line):
    ''' returns a cleaned up version of l '''
    if any((line.startswith(p) for p in BAD_PREFIXES)):
        return ''
    # do not allow absolute path to the .vcd file
    m = match(r'\[dumpfile\] "(.*)"', line)
    if m:
        # replace by filename only
        return '[dumpfile] "{:}"\n'.format(basename(m.group(1)))
    return line
 returns a cleaned up version of l 
returns a cleaned up version of l
returns a cleaned up version of l
def clean_line(line):
    if any((line.startswith(p) for p in BAD_PREFIXES)):
        return ''
    m = match(r'\[dumpfile\] "(.*)"', line)
    if m:
        return '[dumpfile] "{:}"\n'.format(basename(m.group(1)))
    return line
def clean_line ( line ) : if any ( ( line . startswith ( p ) for p in BAD_PREFIXES ) ) : return '' m = match ( r'\[dumpfile\] "(.*)"' , line ) if m : return '[dumpfile] "{:}"\n' . format ( basename ( m . group ( 1 ) ) ) return line
returns a cleaned up version of l
returns a cleaned up version of l
''' returns a cleaned up version of l ''' # do not allow absolute path to the .vcd file # replace by filename only
line