Changeset 668


Ignore:
Timestamp:
Oct 20, 2010, 4:50:01 PM (8 years ago)
Author:
ksherdy
Message:

Fix print_aligned_streams.

Location:
proto/Compiler/workspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/workspace/bitutil.py

    r653 r668  
     1# -*- coding: utf-8 -*-
    12#
    23# bitutil.py
     
    136137        label_max = max([len(p[0]) for p in stream_list])
    137138        for p in stream_list:
    138                 aligned_streams += (p[0] + " "*(label_max - len(p[0]))) + ": " + p[1]
     139                aligned_streams += (p[0] + " "*(label_max - len(p[0]))) + ": " + p[1] + "\n"
     140        return aligned_streams
    139141
    140142def print_aligned_streams(stream_list):
    141143        """Print out a set of aligned streams."""
    142         print(align_streams(align_streams))
     144        print(align_streams(stream_list))
    143145
    144146def latex_streams(stream_list):
  • proto/Compiler/workspace/prototype.py

    r665 r668  
     1# -*- coding: utf-8 -*-
    12#
    23# prototype.py
     
    2021import sys
    2122
     23filename = "prototype.py"
     24
    2225def XXX(data):
    2326        """
     
    3437
    3538        return
    36 
     39                sys.stderr.write("Usage: " + filename + " <infile> [outfile]\n")
    3740if __name__ == "__main__":
    3841        import doctest
     
    4043
    4144        if len(sys.argv) < 2:
    42                 sys.stderr.write("Usage: driver.py <infile> [outfile]\n")
     45
    4346                sys.exit(2)
    4447        if len(sys.argv) == 3:
Note: See TracChangeset for help on using the changeset viewer.