mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +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
|
||||
def _remove_old_zoneinfo():
|
||||
zonefilename = zoneinfo._ZONEFILENAME
|
||||
zonefilename = zoneinfo.ZONEFILENAME
|
||||
if None is zonefilename:
|
||||
return
|
||||
cur_zoneinfo = ek.ek(basename, zonefilename)
|
||||
|
@ -83,7 +83,7 @@ def _update_zoneinfo():
|
|||
logger.WARNING)
|
||||
return
|
||||
|
||||
zonefilename = zoneinfo._ZONEFILENAME
|
||||
zonefilename = zoneinfo.ZONEFILENAME
|
||||
cur_zoneinfo = zonefilename
|
||||
if None is not cur_zoneinfo:
|
||||
cur_zoneinfo = ek.ek(basename, zonefilename)
|
||||
|
@ -222,7 +222,7 @@ def get_network_timezone(network, network_dict):
|
|||
return sb_timezone
|
||||
|
||||
try:
|
||||
if zoneinfo._ZONEFILENAME is not None:
|
||||
if zoneinfo.ZONEFILENAME is not None:
|
||||
try:
|
||||
n_t = tz.gettz(network_dict[network])
|
||||
except:
|
||||
|
|
Loading…
Reference in a new issue