Cleanup
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Mon, 25 Aug 2008 14:14:23 +0000 (16:14 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Mon, 25 Aug 2008 14:14:23 +0000 (16:14 +0200)
Cython/Compiler/Nodes.py
tests/run/bufaccess.pyx

index ce0cb38a92f1bae9608fe7450b1be34ccffce492..c0ce04c8ddd6ca2ad8a308ec8dad0c2d612a91ae 100644 (file)
@@ -1060,7 +1060,7 @@ class FuncDefNode(StatNode, BlockNode):
             self.assmt.generate_execution_code(code)
 
     #
-    # Special code for the __getbuffer__ call
+    # Special code for the __getbuffer__ function
     #
     def getbuffer_init(self, code):
         info = self.local_scope.arg_entries[1].cname
index 4bfb8186cadd9986f609d8289927d38753e2f971..d781a3b1550f35e1b0b9b055c8ba91bb765e7862 100644 (file)
@@ -950,9 +950,6 @@ cdef class MockBuffer:
         if self.fail:
             raise ValueError("Failing on purpose")
 
-        if buffer == NULL:
-            return
-        
         self.recieved_flags = []
         cdef int value
         for name, value in available_flags: