From 88164e5ec242b7154b17a0f6a4a102c6bdd03345 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 29 May 2008 12:01:05 +0200 Subject: [PATCH] increase warning level of __(set|del)slice_ methods --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 80e73953..bcac4c57 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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) -- 2.26.2