diff options
author | Anil Khatri <27620628+imkaka@users.noreply.github.com> | 2019-10-23 23:37:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-23 23:37:43 +0530 |
commit | abb18968516c6c3c9e1d736bfe6f435392b3d3af (patch) | |
tree | 46b45bc52901f0f52526f9573f06b2fc0f777231 /git/objects/util.py | |
parent | 284f89d768080cb86e0d986bfa1dd503cfe6b682 (diff) | |
parent | dfa0eac1578bff14a8f7fa00bfc3c57aba24f877 (diff) | |
download | gitpython-abb18968516c6c3c9e1d736bfe6f435392b3d3af.tar.gz |
Merge branch 'master' into fix/deepsource-issues
Diffstat (limited to 'git/objects/util.py')
-rw-r--r-- | git/objects/util.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git/objects/util.py b/git/objects/util.py index 7b6a2763..5dbd9822 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -105,6 +105,9 @@ class tzoffset(tzinfo): self._offset = timedelta(seconds=-secs_west_of_utc) self._name = name or 'fixed' + def __reduce__(self): + return tzoffset, (-self._offset.total_seconds(), self._name) + def utcoffset(self, dt): return self._offset |