mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-22 01:23:43 +00:00
Change to use non-private zonefilename variable.
This commit is contained in:
parent
e6317dada5
commit
b485106b5b
1 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ def _remove_zoneinfo_failed(filename):
|
||||||
|
|
||||||
# helper to remove old unneeded zoneinfo files
|
# helper to remove old unneeded zoneinfo files
|
||||||
def _remove_old_zoneinfo():
|
def _remove_old_zoneinfo():
|
||||||
zonefilename = zoneinfo._ZONEFILENAME
|
zonefilename = zoneinfo.ZONEFILENAME
|
||||||
if None is zonefilename:
|
if None is zonefilename:
|
||||||
return
|
return
|
||||||
cur_zoneinfo = ek.ek(basename, zonefilename)
|
cur_zoneinfo = ek.ek(basename, zonefilename)
|
||||||
|
@ -83,7 +83,7 @@ def _update_zoneinfo():
|
||||||
logger.WARNING)
|
logger.WARNING)
|
||||||
return
|
return
|
||||||
|
|
||||||
zonefilename = zoneinfo._ZONEFILENAME
|
zonefilename = zoneinfo.ZONEFILENAME
|
||||||
cur_zoneinfo = zonefilename
|
cur_zoneinfo = zonefilename
|
||||||
if None is not cur_zoneinfo:
|
if None is not cur_zoneinfo:
|
||||||
cur_zoneinfo = ek.ek(basename, zonefilename)
|
cur_zoneinfo = ek.ek(basename, zonefilename)
|
||||||
|
@ -222,7 +222,7 @@ def get_network_timezone(network, network_dict):
|
||||||
return sb_timezone
|
return sb_timezone
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if zoneinfo._ZONEFILENAME is not None:
|
if zoneinfo.ZONEFILENAME is not None:
|
||||||
try:
|
try:
|
||||||
n_t = tz.gettz(network_dict[network])
|
n_t = tz.gettz(network_dict[network])
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue