summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2022-10-24 19:23:15 +0200
committerDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2022-10-24 19:23:15 +0200
commit7a98e6c18c2985dceca0667693f570864e85c159 (patch)
treea7078359d9fd146286ee2303c18b5dc0ea3a1d6b
parentc679644b0bc074ca27d9cd26b2aea7cbf4c6f60c (diff)
downloadnumpy-7a98e6c18c2985dceca0667693f570864e85c159.tar.gz
MAINT: remove code specific to Python 2
-rw-r--r--numpy/_globals.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/numpy/_globals.py b/numpy/_globals.py
index 593d90e42..1e4f26cd8 100644
--- a/numpy/_globals.py
+++ b/numpy/_globals.py
@@ -83,10 +83,6 @@ class _NoValueType:
cls.__instance = super().__new__(cls)
return cls.__instance
- # needed for python 2 to preserve identity through a pickle
- def __reduce__(self):
- return (self.__class__, ())
-
def __repr__(self):
return "<no value>"