From d4f6c604dff4b4b9c377e62cf72b897a2c452dd9 Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Mon, 11 Nov 2024 18:01:24 -0500 Subject: [PATCH] Fix typos --- warcio/timeutils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/warcio/timeutils.py b/warcio/timeutils.py index 3d8db4d0..cfd8f31a 100644 --- a/warcio/timeutils.py +++ b/warcio/timeutils.py @@ -63,9 +63,9 @@ def iso_date_to_datetime(string, aware=False): nums[6] = nums[6][:6] nums[6] += PAD_MICRO[len(nums[6]):] - tz_info = None + tzinfo = None if aware: - tz_info = timezone.utc + tzinfo = timezone.utc the_datetime = datetime(*(int(num) for num in nums), tzinfo=tzinfo) return the_datetime @@ -79,9 +79,9 @@ def http_date_to_datetime(string, aware=False): >>> http_date_to_datetime('Thu, 26 Dec 2013 09:50:10 GMT', aware=True) datetime.datetime(2013, 12, 26, 9, 50, 10, tzinfo=datetime.timezone.utc) """ - tz_info = None + tzinfo = None if aware: - tz_info = timezone.utc + tzinfo = timezone.utc return datetime(*parsedate(string)[:6], tzinfo=tzinfo)