diff weather_server/locations.py @ 35:2f3473416c11

Fix format string in repr(Location).
author Paul Fisher <paul@pfish.zone>
date Fri, 02 Jul 2021 20:36:56 -0400
parents 9bc3687e1e5e
children b77c8e7d2742
line wrap: on
line diff
--- a/weather_server/locations.py	Sat Jun 12 20:24:30 2021 +0000
+++ b/weather_server/locations.py	Fri Jul 02 20:36:56 2021 -0400
@@ -66,7 +66,7 @@
             return pytz.UTC
 
     def __repr__(self) -> str:
-        return '<Location in %r>'.format(self.root)
+        return f'<Location in {self.root!r}>'
 
 
 class LocationFolder: