Commit 4b1ae971 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 57e7a826
......@@ -40,15 +40,8 @@ class CompileError(PyrexError):
pos_str = u"%s:%d:%d: " % (position[0].get_description(),
position[1], position[2])
cont = context(position)
else:
pos_str = u""
cont = u''
if position is None:
message = u'\nError converting Pyrex file to C:\n%s\n%s%s' % (cont, pos_str, message)
Exception.__init__(self, message)
else:
Exception.__init__(
self, u'\nError converting Pyrex file to C:\n%s\n%s%s' % (
cont, pos_str, message))
class CompileWarning(PyrexWarning):
......
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