forked from hans/Nominatim
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