mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
Fix Python 3.8 warning when getting Unix time zone
This commit is contained in:
parent
fb303e048f
commit
f8faed6e47
@ -97,7 +97,7 @@ def _get_localzone(_root='/'):
|
||||
if os.path.exists(tzpath) and os.path.islink(tzpath):
|
||||
tzpath = os.path.realpath(tzpath)
|
||||
start = tzpath.find("/")+1
|
||||
while start is not 0:
|
||||
while start != 0:
|
||||
tzpath = tzpath[start:]
|
||||
try:
|
||||
return pytz.timezone(tzpath)
|
||||
|
Loading…
Reference in New Issue
Block a user