diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2010-02-08 02:06:36 -0500 |
---|---|---|
committer | Mac Mollison <mollison@cs.unc.edu> | 2010-02-08 02:06:36 -0500 |
commit | d260162e66d5f15d6f133bc50c2dd47107e228de (patch) | |
tree | 9af85662fed1e20a0217e647e139219a4021af9a | |
parent | 4f8a5a5727346b73a3ccd8e3120db8193de34960 (diff) |
Renamed module names to be more intuitive
- trace.py -> trace_reader.py
- text_print.py -> stdout_printer.py
-rwxr-xr-x | run.py | 8 | ||||
-rwxr-xr-x | runtests.py | 4 | ||||
-rw-r--r-- | stdout_printer.py (renamed from text_print.py) | 0 | ||||
-rw-r--r-- | trace_reader.py (renamed from trace.py) | 0 |
4 files changed, 6 insertions, 6 deletions
@@ -12,8 +12,8 @@ | |||
12 | # Imports | 12 | # Imports |
13 | ############################################################################### | 13 | ############################################################################### |
14 | 14 | ||
15 | import trace | 15 | import trace_reader |
16 | import text_print | 16 | import stdout_printer |
17 | 17 | ||
18 | ############################################################################### | 18 | ############################################################################### |
19 | # Trace files | 19 | # Trace files |
@@ -30,5 +30,5 @@ g4 = [ | |||
30 | # Pipeline | 30 | # Pipeline |
31 | ############################################################################### | 31 | ############################################################################### |
32 | 32 | ||
33 | stream = trace.get_trace_record_stream(g4) | 33 | stream = trace_reader.get_trace_record_stream(g4) |
34 | text_print.print_stream(stream) | 34 | stdout_printer.print_stream(stream) |
diff --git a/runtests.py b/runtests.py index dbbc9a9..06c5caa 100755 --- a/runtests.py +++ b/runtests.py | |||
@@ -11,7 +11,7 @@ | |||
11 | # Imports | 11 | # Imports |
12 | ############################################################################### | 12 | ############################################################################### |
13 | 13 | ||
14 | import trace | 14 | import trace_reader |
15 | import os | 15 | import os |
16 | 16 | ||
17 | ############################################################################### | 17 | ############################################################################### |
@@ -31,7 +31,7 @@ files = [ | |||
31 | 31 | ||
32 | # Does the trace reader sort files by time correctly? | 32 | # Does the trace reader sort files by time correctly? |
33 | def test1(): | 33 | def test1(): |
34 | stream = trace.get_trace_record_stream(files) | 34 | stream = trace_reader.get_trace_record_stream(files) |
35 | last_time = 0 | 35 | last_time = 0 |
36 | for item in stream: | 36 | for item in stream: |
37 | if last_time > item.when: | 37 | if last_time > item.when: |
diff --git a/text_print.py b/stdout_printer.py index 98e91fa..98e91fa 100644 --- a/text_print.py +++ b/stdout_printer.py | |||
diff --git a/trace.py b/trace_reader.py index a0a32ce..a0a32ce 100644 --- a/trace.py +++ b/trace_reader.py | |||