Merge pull request #717 from Flaxee/fix-syntaxerror

Update unix.py
This commit is contained in:
morpheus65535 2019-12-28 09:42:57 -05:00 committed by GitHub
commit 2c255db924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,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)