mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +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:
@@ -37,8 +37,8 @@ GIT_COMMIT_HASH = None
|
||||
|
||||
|
||||
# pylint: disable=consider-using-f-string
|
||||
def version_str():
|
||||
def version_str(version=NOMINATIM_VERSION):
|
||||
"""
|
||||
Return a human-readable string of the version.
|
||||
"""
|
||||
return '{}.{}.{}-{}'.format(*NOMINATIM_VERSION)
|
||||
return '{}.{}.{}-{}'.format(*version)
|
||||
|
||||
Reference in New Issue
Block a user