diff options
author | aboddie <64019758+aboddie@users.noreply.github.com> | 2020-06-03 14:18:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 14:18:19 (GMT) |
commit | 5b9fbbabacca0378755fd9cadc4a7cc01a71eaef (patch) | |
tree | 726e52ec89a4aa7b5db95473dd17b982c6a03ef9 /Lib/zoneinfo | |
parent | df773f8c5454acebe08c31e7308597fa5a8bf5df (diff) | |
download | cpython-5b9fbbabacca0378755fd9cadc4a7cc01a71eaef.zip cpython-5b9fbbabacca0378755fd9cadc4a7cc01a71eaef.tar.gz cpython-5b9fbbabacca0378755fd9cadc4a7cc01a71eaef.tar.bz2 |
Update error message in _zoneinfo.py to use f-string (GH-20577)
Inline with the rest of the file, updated error message to use f-string.
Diffstat (limited to 'Lib/zoneinfo')
-rw-r--r-- | Lib/zoneinfo/_zoneinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zoneinfo/_zoneinfo.py b/Lib/zoneinfo/_zoneinfo.py index 7b1718a..9810637 100644 --- a/Lib/zoneinfo/_zoneinfo.py +++ b/Lib/zoneinfo/_zoneinfo.py @@ -742,7 +742,7 @@ def _parse_tz_delta(tz_delta): if not -86400 < total < 86400: raise ValueError( - "Offset must be strictly between -24h and +24h:" + tz_delta + f"Offset must be strictly between -24h and +24h: {tz_delta}" ) # Yes, +5 maps to an offset of -5h |