[Python-checkins] fix typo in warning (#20620)
orsenthil
webhook-mailer at python.org
Sun Apr 25 13:45:26 EDT 2021
https://github.com/python/cpython/commit/a31cf86bc2d9c0738b2a0251af766d6b247683fc
commit: a31cf86bc2d9c0738b2a0251af766d6b247683fc
branch: master
author: Allen <64019758+aboddie at users.noreply.github.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-04-25T10:45:05-07:00
summary:
fix typo in warning (#20620)
* Add space after period to warning in _tzpath.py
Currently:
InvalidTZPathWarning: Invalid paths specified in PYTHONTZPATH environment variable.Paths should be absolute but found the following relative paths: ...
* Update _tzpath.py
files:
M Lib/zoneinfo/_tzpath.py
diff --git a/Lib/zoneinfo/_tzpath.py b/Lib/zoneinfo/_tzpath.py
index 9513611c17738..672560b951442 100644
--- a/Lib/zoneinfo/_tzpath.py
+++ b/Lib/zoneinfo/_tzpath.py
@@ -42,7 +42,7 @@ def _parse_python_tzpath(env_var):
msg = _get_invalid_paths_message(raw_tzpath)
warnings.warn(
- "Invalid paths specified in PYTHONTZPATH environment variable."
+ "Invalid paths specified in PYTHONTZPATH environment variable. "
+ msg,
InvalidTZPathWarning,
)
More information about the Python-checkins
mailing list