summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/cython/files/cython-0.14-__new__.patch')
-rw-r--r--dev-python/cython/files/cython-0.14-__new__.patch26
1 files changed, 0 insertions, 26 deletions
diff --git a/dev-python/cython/files/cython-0.14-__new__.patch b/dev-python/cython/files/cython-0.14-__new__.patch
deleted file mode 100644
index 4a794a2c9c7a..000000000000
--- a/dev-python/cython/files/cython-0.14-__new__.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-https://github.com/cython/cython/commit/e3c9a78686b7a7f0d36da8e6189b1e1fb4037c73
-
---- Cython/Compiler/Nodes.py
-+++ Cython/Compiler/Nodes.py
-@@ -1988,7 +1988,7 @@
- # staticmethod() was overridden - not much we can do here ...
- self.is_staticmethod = False
-
-- if self.name == '__new__':
-+ if self.name == '__new__' and env.is_py_class_scope:
- self.is_staticmethod = 1
-
- self.analyse_argument_types(env)
---- Cython/Compiler/Symtab.py
-+++ Cython/Compiler/Symtab.py
-@@ -1535,9 +1535,8 @@
- if name in ('__eq__', '__ne__', '__lt__', '__gt__', '__le__', '__ge__'):
- error(pos, "Special method %s must be implemented via __richcmp__" % name)
- if name == "__new__":
-- warning(pos, "__new__ method of extension type will change semantics "
-+ error(pos, "__new__ method of extension type will change semantics "
- "in a future version of Pyrex and Cython. Use __cinit__ instead.")
-- name = EncodedString("__cinit__")
- entry = self.declare_var(name, py_object_type, pos, visibility='extern')
- special_sig = get_special_method_signature(name)
- if special_sig: