diff options
Diffstat (limited to 'debian/patches/python3p12_compat.patch')
-rw-r--r-- | debian/patches/python3p12_compat.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/python3p12_compat.patch b/debian/patches/python3p12_compat.patch new file mode 100644 index 0000000..16644e5 --- /dev/null +++ b/debian/patches/python3p12_compat.patch @@ -0,0 +1,17 @@ +Description: Avoid warning in Python 3.12 + +Author: Rebecca N. Palmer <rebecca_palmer@zoho.com> +Bug-Debian: https://bugs.debian.org/1058160 +Forwarded: no + +--- tqdm-4.64.1.orig/tqdm/std.py ++++ tqdm-4.64.1/tqdm/std.py +@@ -465,7 +465,7 @@ class tqdm(Comparable): + remaining_str = tqdm.format_interval(remaining) if rate else '?' + try: + eta_dt = (datetime.now() + timedelta(seconds=remaining) +- if rate and total else datetime.utcfromtimestamp(0)) ++ if rate and total else datetime(1970,1,1,0,0)) + except OverflowError: + eta_dt = datetime.max + |