mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-28 07:33:38 +00:00
Update dateutil 2.8.2 (296d419) → 2.9.0.post0 (0353b78).
This commit is contained in:
parent
64ca9b6f00
commit
c645ff464f
2 changed files with 4 additions and 5 deletions
|
@ -3,6 +3,7 @@
|
||||||
* Update Beautiful Soup 4.12.2 (30c58a1) to 4.12.3 (7fb5175)
|
* Update Beautiful Soup 4.12.2 (30c58a1) to 4.12.3 (7fb5175)
|
||||||
* Update CacheControl 0.13.1 (783a338) to 0.14.0 (e2be0c2)
|
* Update CacheControl 0.13.1 (783a338) to 0.14.0 (e2be0c2)
|
||||||
* Update certifi 2024.02.02 to 2024.06.02
|
* Update certifi 2024.02.02 to 2024.06.02
|
||||||
|
* Update dateutil 2.8.2 (296d419) to 2.9.0.post0 (0353b78)
|
||||||
* Update feedparser 6.0.10 (9865dec) to 6.0.11 (efcb89b)
|
* Update feedparser 6.0.10 (9865dec) to 6.0.11 (efcb89b)
|
||||||
* Update filelock 3.12.4 (c1163ae) to 3.14.0 (8556141)
|
* Update filelock 3.12.4 (c1163ae) to 3.14.0 (8556141)
|
||||||
* Update idna library 3.4 (cab054c) to 3.7 (1d365e1)
|
* Update idna library 3.4 (cab054c) to 3.7 (1d365e1)
|
||||||
|
|
|
@ -9,8 +9,6 @@ from io import BytesIO
|
||||||
|
|
||||||
from dateutil.tz import tzfile as _tzfile
|
from dateutil.tz import tzfile as _tzfile
|
||||||
|
|
||||||
# noinspection PyPep8Naming
|
|
||||||
import encodingKludge as ek
|
|
||||||
import sickgear
|
import sickgear
|
||||||
|
|
||||||
__all__ = ["get_zonefile_instance", "gettz", "gettz_db_metadata"]
|
__all__ = ["get_zonefile_instance", "gettz", "gettz_db_metadata"]
|
||||||
|
@ -27,10 +25,10 @@ class tzfile(_tzfile):
|
||||||
def getzoneinfofile_stream():
|
def getzoneinfofile_stream():
|
||||||
try:
|
try:
|
||||||
# return BytesIO(get_data(__name__, ZONEFILENAME))
|
# return BytesIO(get_data(__name__, ZONEFILENAME))
|
||||||
zonefile = ek.ek(os.path.join, sickgear.ZONEINFO_DIR, ZONEFILENAME)
|
zonefile = os.path.join(sickgear.ZONEINFO_DIR, ZONEFILENAME)
|
||||||
if not ek.ek(os.path.isfile, zonefile):
|
if not os.path.isfile(zonefile):
|
||||||
warnings.warn('Falling back to included zoneinfo file')
|
warnings.warn('Falling back to included zoneinfo file')
|
||||||
zonefile = ek.ek(os.path.join, ek.ek(os.path.dirname, __file__), ZONEFILENAME)
|
zonefile = os.path.join(os.path.dirname(__file__), ZONEFILENAME)
|
||||||
with open(zonefile, 'rb') as f:
|
with open(zonefile, 'rb') as f:
|
||||||
return BytesIO(f.read())
|
return BytesIO(f.read())
|
||||||
except IOError as e: # TODO switch to FileNotFoundError?
|
except IOError as e: # TODO switch to FileNotFoundError?
|
||||||
|
|
Loading…
Reference in a new issue