Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2011-11-09 03:53:35 -0500
committerAnton Leherbauer2011-11-09 03:54:41 -0500
commitfb72ace086be4ea719a6fa541ef7818796b498f3 (patch)
tree69ea065ddcb6adee42c217fd2779711ea4f84749
parentb831d144a0f0bc6ed91fe2a603cd142f000862bb (diff)
downloadorg.eclipse.tcf-fb72ace086be4ea719a6fa541ef7818796b498f3.tar.gz
org.eclipse.tcf-fb72ace086be4ea719a6fa541ef7818796b498f3.tar.xz
org.eclipse.tcf-fb72ace086be4ea719a6fa541ef7818796b498f3.zip
TCF Python: Fixed TypeErrors in CodeArea.__str__()
-rw-r--r--python/src/tcf/services/linenumbers.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/src/tcf/services/linenumbers.py b/python/src/tcf/services/linenumbers.py
index 410e8d2b4..d026ecd12 100644
--- a/python/src/tcf/services/linenumbers.py
+++ b/python/src/tcf/services/linenumbers.py
@@ -46,7 +46,7 @@ class CodeArea(object):
self.epilogue_begin = epilogue_begin
def __eq__(self, o):
- if self == o: return True
+ if self is o: return True
if not isinstance(o, CodeArea): return False
if self.start_line != o.start_line: return False
if self.start_column != o.start_column: return False
@@ -81,12 +81,12 @@ class CodeArea(object):
bf.write(str(self.start_line))
if self.start_column:
bf.write('.')
- bf.write(self.start_column)
+ bf.write(str(self.start_column))
bf.write("..")
- bf.write(self.end_line)
+ bf.write(str(self.end_line))
if self.end_column:
bf.write('.')
- bf.write(self.end_column)
+ bf.write(str(self.end_column))
bf.write(" -> ")
if self.start_address:
bf.write("0x")
@@ -101,7 +101,7 @@ class CodeArea(object):
bf.write('0')
if self.isa:
bf.write(",isa ")
- bf.write(self.isa)
+ bf.write(str(self.isa))
if self.is_statement:
bf.write(",statement")
if self.basic_block:

Back to the top