diff options
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-18 08:32:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-18 18:32:56 +0300 |
commit | a055ced9d43630cadc3c1d5edab0884f2c5131ea (patch) | |
tree | 3bd0b566757d2a49bc23df33b162ae345ab1c7e2 /Lib/datetime.py | |
parent | 6a2aa4994e99ae8e43011a0290646fde4724a003 (diff) | |
download | cpython-git-a055ced9d43630cadc3c1d5edab0884f2c5131ea.tar.gz |
bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22747)
(cherry picked from commit c304c9a7efa8751b5bc7526fa95cd5f30aac2b92)
Co-authored-by: scaramallion <scaramallion@users.noreply.github.com>
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r-- | Lib/datetime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py index 2294ac2b68..e508d996fb 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -1579,7 +1579,7 @@ class time: self._tzinfo = tzinfo def __reduce_ex__(self, protocol): - return (time, self._getstate(protocol)) + return (self.__class__, self._getstate(protocol)) def __reduce__(self): return self.__reduce_ex__(2) |