diff --git a/CHANGES.md b/CHANGES.md index 98cf2059..1ac4b258 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ * Update Apprise 1.3.0 (6458ab0) to 1.6.0 (0c0d5da) * Update attr 22.2.0 (683d056) to 23.1.0 (67e4ff2) * Update Beautiful Soup 4.12.2 to 4.12.2 (30c58a1) +* Update dateutil 2.8.2 (28da62d) to 2.8.2 (296d419) * Update diskcache 5.6.1 (4d30686) to 5.6.3 (323787f) * Update hachoir 3.1.2 (f739b43) to 3.2.0 (38d759f) * Update Pytvmaze library 2.0.8 (81888a5) to 2.0.8 (b451391) diff --git a/lib/dateutil/parser/isoparser.py b/lib/dateutil/parser/isoparser.py index 9b42b0e2..727890d8 100644 --- a/lib/dateutil/parser/isoparser.py +++ b/lib/dateutil/parser/isoparser.py @@ -72,7 +72,7 @@ class isoparser(object): Common: - ``YYYY`` - - ``YYYY-MM`` or ``YYYYMM`` + - ``YYYY-MM`` - ``YYYY-MM-DD`` or ``YYYYMMDD`` Uncommon: diff --git a/lib/dateutil/relativedelta.py b/lib/dateutil/relativedelta.py index fa7f649c..3d9c4fdf 100644 --- a/lib/dateutil/relativedelta.py +++ b/lib/dateutil/relativedelta.py @@ -48,7 +48,7 @@ class relativedelta(object): the corresponding arithmetic operation on the original datetime value with the information in the relativedelta. - weekday: + weekday: One of the weekday instances (MO, TU, etc) available in the relativedelta module. These instances may receive a parameter N, specifying the Nth weekday, which could be positive or negative diff --git a/lib/dateutil/rrule.py b/lib/dateutil/rrule.py index adbb118e..a134dcd5 100644 --- a/lib/dateutil/rrule.py +++ b/lib/dateutil/rrule.py @@ -182,7 +182,7 @@ class rrulebase(object): # __len__() introduces a large performance penalty. def count(self): """ Returns the number of recurrences in this set. It will have go - trough the whole recurrence, if this hasn't been done before. """ + through the whole recurrence, if this hasn't been done before. """ if self._len is None: for x in self: pass diff --git a/lib/dateutil/tz/tz.py b/lib/dateutil/tz/tz.py index 8d2ad778..bb45251b 100644 --- a/lib/dateutil/tz/tz.py +++ b/lib/dateutil/tz/tz.py @@ -34,7 +34,7 @@ except ImportError: from warnings import warn ZERO = datetime.timedelta(0) -EPOCH = datetime.datetime.utcfromtimestamp(0) +EPOCH = datetime.datetime(1970, 1, 1, 0, 0) EPOCHORDINAL = EPOCH.toordinal() diff --git a/lib/dateutil/zoneinfo/__init__.py b/lib/dateutil/zoneinfo/__init__.py index 27cc9df4..5628bfc3 100644 --- a/lib/dateutil/zoneinfo/__init__.py +++ b/lib/dateutil/zoneinfo/__init__.py @@ -9,6 +9,8 @@ from io import BytesIO from dateutil.tz import tzfile as _tzfile +# noinspection PyPep8Naming +import encodingKludge as ek import sickgear __all__ = ["get_zonefile_instance", "gettz", "gettz_db_metadata"] @@ -25,10 +27,10 @@ class tzfile(_tzfile): def getzoneinfofile_stream(): try: # return BytesIO(get_data(__name__, ZONEFILENAME)) - zonefile = os.path.join(sickgear.ZONEINFO_DIR, ZONEFILENAME) - if not os.path.isfile(zonefile): + zonefile = ek.ek(os.path.join, sickgear.ZONEINFO_DIR, ZONEFILENAME) + if not ek.ek(os.path.isfile, zonefile): warnings.warn('Falling back to included zoneinfo file') - zonefile = os.path.join(os.path.dirname(__file__), ZONEFILENAME) + zonefile = ek.ek(os.path.join, ek.ek(os.path.dirname, __file__), ZONEFILENAME) with open(zonefile, 'rb') as f: return BytesIO(f.read()) except IOError as e: # TODO switch to FileNotFoundError?