increase warning level of __(set|del)slice_ methods
authorStefan Behnel <scoder@users.berlios.de>
Thu, 29 May 2008 10:01:05 +0000 (12:01 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 29 May 2008 10:01:05 +0000 (12:01 +0200)
Cython/Compiler/ModuleNode.py

index 80e7395367874cf705f12f0f2f2b14b00b93c5ef..bcac4c57bb05edbebe5c34e3684ccc68857b6d32 100644 (file)
@@ -730,7 +730,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
                     if scope.defines_any(["__setitem__", "__delitem__"]):
                         self.generate_ass_subscript_function(scope, code)
                     if scope.defines_any(["__setslice__", "__delslice__"]):
-                        warning(self.pos, "__setslice__ and __delslice__ are not supported by Python 3")
+                        warning(self.pos, "__setslice__ and __delslice__ are not supported by Python 3", 1)
                         self.generate_ass_slice_function(scope, code)
                     if scope.defines_any(["__getattr__","__getattribute__"]):
                         self.generate_getattro_function(scope, code)