]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] fix typo in warning (GH-20620) (#25601)
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 25 Apr 2021 19:25:51 +0000 (12:25 -0700)
committerGitHub <noreply@github.com>
Sun, 25 Apr 2021 19:25:51 +0000 (12:25 -0700)
* 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>
Lib/zoneinfo/_tzpath.py

index 9513611c17738e14c87260601c2632389566d05e..672560b9514429e18598cdada8e1a086c6b29cef 100644 (file)
@@ -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,
         )