mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
solve assorted issue with newer pylint versions
Includes more use of 'with', adding encodings to open statements and a couple of issues with parameter renaming.
This commit is contained in:
@@ -25,7 +25,8 @@ class _Cursor(psycopg2.extras.DictCursor):
|
||||
execution functions.
|
||||
"""
|
||||
|
||||
def execute(self, query, args=None): # pylint: disable=W0221
|
||||
# pylint: disable=arguments-renamed,arguments-differ
|
||||
def execute(self, query, args=None):
|
||||
""" Query execution that logs the SQL query when debugging is enabled.
|
||||
"""
|
||||
LOG.debug(self.mogrify(query, args).decode('utf-8'))
|
||||
|
||||
Reference in New Issue
Block a user