diff options
author | Yobmod <yobmod@gmail.com> | 2021-08-02 17:56:06 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-08-02 17:56:06 +0100 |
commit | 481f672baab666d6e2f81e9288a5f3c42c884a8e (patch) | |
tree | c88f064fcdfa463c96ebdd0e0d694294b1cfe393 /git/objects/util.py | |
parent | 6470ad4a413fb7fbd9f2d3b9da1720c13ffc92bb (diff) | |
download | gitpython-481f672baab666d6e2f81e9288a5f3c42c884a8e.tar.gz |
Add __future__.annotations to repo/base.py
Diffstat (limited to 'git/objects/util.py')
-rw-r--r-- | git/objects/util.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/git/objects/util.py b/git/objects/util.py index 0b843301..16d4c0ac 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -187,9 +187,7 @@ def parse_date(string_date: Union[str, datetime]) -> Tuple[int, int]: offset = -int(utcoffset.total_seconds()) return int(string_date.astimezone(utc).timestamp()), offset else: - # should just return timestamp, 0? - return int(string_date.astimezone(utc).timestamp()), 0 - # raise ValueError(f"string_date datetime object without tzinfo, {string_date}") + raise ValueError(f"string_date datetime object without tzinfo, {string_date}") # git time try: |