mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Further de-linting of zoneinfo module (#20499)
* Remove unused imports in zoneinfo * Remove unused variables in zoneinfo * Remove else after raise
This commit is contained in:
parent
895c9c1d43
commit
364b5ead15
4 changed files with 5 additions and 12 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue