summaryrefslogtreecommitdiff
path: root/tools/trace/tcreator/tcreator.py
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-03-06 22:57:57 +0100
committerNélio Laranjeiro2009-03-06 22:57:57 +0100
commitda91bb6d1ec2edda204eb50bb1ec6a0e00a4d557 (patch)
treeb371eb2d6f1d95fc1f194685e46613b80954b03c /tools/trace/tcreator/tcreator.py
parent436b7c13b108822978c019471675e81297693874 (diff)
tools/trace: Ended the interpretor part of the trace tool.
Diffstat (limited to 'tools/trace/tcreator/tcreator.py')
-rw-r--r--tools/trace/tcreator/tcreator.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/trace/tcreator/tcreator.py b/tools/trace/tcreator/tcreator.py
index be771afb..d0d8807c 100644
--- a/tools/trace/tcreator/tcreator.py
+++ b/tools/trace/tcreator/tcreator.py
@@ -7,7 +7,6 @@ except:
print "--> You should run yapps on lib/parser.g"
class TCreator:
-
def __init__(self, infile, outfile, enum_name = "trace_id_t"):
self.__infile = infile
self.__outfile = outfile
@@ -21,7 +20,7 @@ class TCreator:
w = Writer (self.__outfile, self.__enum_name)
outstring = w.parse_list (data)
- if self.__outfile != "":
+ if self.__outfile != None:
w.write_file (outstring)
else:
w.print_file (outstring)