summaryrefslogtreecommitdiffstats
path: root/Lib/zoneinfo/_tzpath.py
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2020-05-29 13:34:30 (GMT)
committerGitHub <noreply@github.com>2020-05-29 13:34:30 (GMT)
commit364b5ead1584583db91ef7f9d9f87f01bfbb5774 (patch)
tree00b94e01eeca21e816d79a16c31d6bb6e4897e04 /Lib/zoneinfo/_tzpath.py
parent895c9c1d438367722f74f437fda96767d770662b (diff)
downloadcpython-364b5ead1584583db91ef7f9d9f87f01bfbb5774.zip
cpython-364b5ead1584583db91ef7f9d9f87f01bfbb5774.tar.gz
cpython-364b5ead1584583db91ef7f9d9f87f01bfbb5774.tar.bz2
Further de-linting of zoneinfo module (#20499)
* Remove unused imports in zoneinfo * Remove unused variables in zoneinfo * Remove else after raise
Diffstat (limited to 'Lib/zoneinfo/_tzpath.py')
-rw-r--r--Lib/zoneinfo/_tzpath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/zoneinfo/_tzpath.py b/Lib/zoneinfo/_tzpath.py
index 9e381b6..9513611 100644
--- a/Lib/zoneinfo/_tzpath.py
+++ b/Lib/zoneinfo/_tzpath.py
@@ -12,7 +12,8 @@ def reset_tzpath(to=None):
f"tzpaths must be a list or tuple, "
+ f"not {type(tzpaths)}: {tzpaths!r}"
)
- elif not all(map(os.path.isabs, tzpaths)):
+
+ if not all(map(os.path.isabs, tzpaths)):
raise ValueError(_get_invalid_paths_message(tzpaths))
base_tzpath = tzpaths
else: