summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2021-04-25 19:25:51 (GMT)
committerGitHub <noreply@github.com>2021-04-25 19:25:51 (GMT)
commitd2e2534751fd675c4d5d3adc208bf4fc984da7bf (patch)
treee46fc1544f06294cc1de064f1868ebd883381a1f
parent2825f906c7aaa1a34793f628ae30a52ed9e9acb8 (diff)
downloadcpython-d2e2534751fd675c4d5d3adc208bf4fc984da7bf.zip
cpython-d2e2534751fd675c4d5d3adc208bf4fc984da7bf.tar.gz
cpython-d2e2534751fd675c4d5d3adc208bf4fc984da7bf.tar.bz2
[3.9] fix typo in warning (GH-20620) (#25601)
* 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 (cherry picked from commit a31cf86bc2d9c0738b2a0251af766d6b247683fc) Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>
-rw-r--r--Lib/zoneinfo/_tzpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zoneinfo/_tzpath.py b/Lib/zoneinfo/_tzpath.py
index 9513611..672560b 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,
)