summaryrefslogtreecommitdiff
path: root/babel/localtime/_win32.py
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2022-11-23 13:33:10 +0200
committerGitHub <noreply@github.com>2022-11-23 13:33:10 +0200
commita45e25e3125f6ee0a9f32387545df318b0b3b2d0 (patch)
tree6228fbb39432f1584097a10742f0ec8ac7263d7a /babel/localtime/_win32.py
parent896c2ea72818011bc0e8bd84151b0b10935fd4fa (diff)
downloadbabel-a45e25e3125f6ee0a9f32387545df318b0b3b2d0.tar.gz
Replace %/.format/concatenation with f-strings where feasible (#927)
Original conversion suggestions via flynt, edited by hand.
Diffstat (limited to 'babel/localtime/_win32.py')
-rw-r--r--babel/localtime/_win32.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/babel/localtime/_win32.py b/babel/localtime/_win32.py
index 09b87b1..a4f6d55 100644
--- a/babel/localtime/_win32.py
+++ b/babel/localtime/_win32.py
@@ -77,11 +77,11 @@ def get_localzone_name():
if timezone is None:
# Nope, that didn't work. Try adding 'Standard Time',
# it seems to work a lot of times:
- timezone = tz_names.get(tzkeyname + ' Standard Time')
+ timezone = tz_names.get(f"{tzkeyname} Standard Time")
# Return what we have.
if timezone is None:
- raise pytz.UnknownTimeZoneError('Can not find timezone ' + tzkeyname)
+ raise pytz.UnknownTimeZoneError(f"Can not find timezone {tzkeyname}")
return timezone