mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
pylint: avoid explicit use of format() function
Use psycopg2 SQL formatters for SQL and formatted string literals everywhere else.
This commit is contained in:
@@ -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.')
|
||||
|
||||
Reference in New Issue
Block a user