changeset 35:2f3473416c11

Fix format string in repr(Location).
author Paul Fisher <paul@pfish.zone>
date Fri, 02 Jul 2021 20:36:56 -0400
parents 8d3f32455575
children e5a03d63b3d9
files weather_server/locations.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: