summaryrefslogtreecommitdiff
path: root/babel/localtime/_win32.py
diff options
context:
space:
mode:
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