summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-10-25 11:20:05 +0200
committerGitHub <noreply@github.com>2022-10-25 11:20:05 +0200
commit6a5086c9b875ea06fe5c6411cdc225188f10a7bb (patch)
tree6267c6b717ed7c8e4ca40fb1cdb0ab604c0dc004
parent8d61ebc25a117337d148f1e3d96066653bd6419a (diff)
parent7a98e6c18c2985dceca0667693f570864e85c159 (diff)
downloadnumpy-6a5086c9b875ea06fe5c6411cdc225188f10a7bb.tar.gz
Merge pull request #22475 from DimitriPapadopoulos/reduce_pickle
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>"