Minor cleanups
authorCraig Citro <craigcitro@gmail.com>
Sat, 13 Mar 2010 03:47:08 +0000 (19:47 -0800)
committerCraig Citro <craigcitro@gmail.com>
Sat, 13 Mar 2010 03:47:08 +0000 (19:47 -0800)
Cython/Compiler/Errors.py
Cython/Compiler/ExprNodes.py
Cython/Compiler/Main.py
Cython/Compiler/Symtab.py

index c04390dae5261a770c91a6a7ae413668c65d6cbc..d35a43274a56a60b3351f428c89abbcc746ba84e 100644 (file)
@@ -37,7 +37,8 @@ class CompileError(PyrexError):
     # Deprecated and withdrawn in 2.6:
     #   self.message = message
         if position:
-            pos_str = u"%s:%d:%d: " % (position[0].get_description(), position[1], position[2])
+            pos_str = u"%s:%d:%d: " % (position[0].get_description(),
+                                       position[1], position[2])
             cont = context(position)
         else:
             pos_str = u""
index 8659b605b263a18ca3c0500eda1020e2f0fa2f64..3e240ccf751d58685ffce5a6e19ee5def3fb8037 100755 (executable)
@@ -6059,10 +6059,10 @@ class CoerceFromPyTypeNode(CoercionNode):
         self.is_temp = 1
         if not result_type.create_from_py_utility_code(env):
             error(arg.pos,
-                "Cannot convert Python object to '%s'" % result_type)
+                  "Cannot convert Python object to '%s'" % result_type)
         if self.type.is_string and self.arg.is_ephemeral():
             error(arg.pos,
-                "Obtaining char * from temporary Python value")
+                  "Obtaining char * from temporary Python value")
     
     def analyse_types(self, env):
         # The arg is always already analysed
index db6d194b90aecbb50f58280e047cc614ce1c961e..736d81472a777be2c579ae994a6bfeebe841b83e 100644 (file)
@@ -146,9 +146,9 @@ class Context(object):
             DropRefcountingTransform(),
             FinalOptimizePhase(self),
             GilCheck(),
-#            ClearResultCodes(self),
-#            SpecialFunctions(self),
-            #        CreateClosureClasses(context),
+            #ClearResultCodes(self),
+            #SpecialFunctions(self),
+            #CreateClosureClasses(context),
             ]
 
     def create_pyx_pipeline(self, options, result, py=False):
index 8282404e499a43ac9dd3cb93a115a5a695601758..3427b93e1b23a7af9bc253b105aaf11f93d029af 100644 (file)
@@ -1245,10 +1245,10 @@ class StructOrUnionScope(Scope):
         self.var_entries.append(entry)
         if type.is_pyobject and not allow_pyobject:
             error(pos,
-                "C struct/union member cannot be a Python object")
+                  "C struct/union member cannot be a Python object")
         if visibility != 'private':
             error(pos,
-                "C struct/union member cannot be declared %s" % visibility)
+                  "C struct/union member cannot be declared %s" % visibility)
         return entry
 
     def declare_cfunction(self, name, type, pos,