summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-03 15:09:49 (GMT)
committerGitHub <noreply@github.com>2020-06-03 15:09:49 (GMT)
commita125561397c80a30db74f6ac289781fb53af9196 (patch)
treef5ae9f9a2786f57106a61b64bda8005bfb0065f6 /Lib
parent74a1fceeb61212a24608eab8266f64c6b22679a6 (diff)
downloadcpython-a125561397c80a30db74f6ac289781fb53af9196.zip
cpython-a125561397c80a30db74f6ac289781fb53af9196.tar.gz
cpython-a125561397c80a30db74f6ac289781fb53af9196.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. (cherry picked from commit 5b9fbbabacca0378755fd9cadc4a7cc01a71eaef) Co-authored-by: aboddie <64019758+aboddie@users.noreply.github.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/zoneinfo/_zoneinfo.py2
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