diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-10-25 11:20:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-25 11:20:05 +0200 |
| commit | 6a5086c9b875ea06fe5c6411cdc225188f10a7bb (patch) | |
| tree | 6267c6b717ed7c8e4ca40fb1cdb0ab604c0dc004 | |
| parent | 8d61ebc25a117337d148f1e3d96066653bd6419a (diff) | |
| parent | 7a98e6c18c2985dceca0667693f570864e85c159 (diff) | |
| download | numpy-6a5086c9b875ea06fe5c6411cdc225188f10a7bb.tar.gz | |
Merge pull request #22475 from DimitriPapadopoulos/reduce_pickle
MAINT: remove code specific to Python 2
| -rw-r--r-- | numpy/_globals.py | 4 |
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>" |
