cleanup
authorStefan Behnel <scoder@users.berlios.de>
Wed, 8 Sep 2010 18:05:24 +0000 (20:05 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 8 Sep 2010 18:05:24 +0000 (20:05 +0200)
Cython/Compiler/Errors.py

index bf99017ce46596d0238bddf3e6706a97f041dd6f..76b67046a5f20710a01830a9abb4f85efc23f175 100644 (file)
@@ -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:
-            Exception.__init__(self, message)
-        else:
-            Exception.__init__(
-                self, u'\nError converting Pyrex file to C:\n%s\n%s%s' % (
-                cont, pos_str, message))
+            message = u'\nError converting Pyrex file to C:\n%s\n%s%s' % (cont, pos_str, message)
+        Exception.__init__(self, message)
 
 class CompileWarning(PyrexWarning):