Commit d0d78efb authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

SourceDescriptor-related bug

parents 777cc184 50fe035d
...@@ -42,7 +42,7 @@ class CompileWarning(PyrexWarning): ...@@ -42,7 +42,7 @@ class CompileWarning(PyrexWarning):
self.position = position self.position = position
self.message = message self.message = message
if position: if position:
pos_str = "%s:%d:%d: " % position pos_str = "%s:%d:%d: " % (position[0].get_description(), position[1], position[2])
else: else:
pos_str = "" pos_str = ""
Exception.__init__(self, pos_str + message) Exception.__init__(self, pos_str + message)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment