]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/special_phrases/sp_csv_loader.py
pylint: avoid explicit use of format() function
[nominatim.git] / nominatim / tools / special_phrases / sp_csv_loader.py
index a32a4b39e5a74387c144fdc5f41c4b7ecd638f94..2a67687fba25a371778f8475d3029d1cd77ceb6c 100644 (file)
@@ -54,4 +54,4 @@ class SPCsvLoader(Iterator):
         _, extension = os.path.splitext(self.csv_path)
 
         if extension != '.csv':
-            raise UsageError('The file {} is not a csv file.'.format(self.csv_path))
+            raise UsageError(f'The file {self.csv_path} is not a csv file.')