From 544ecdc1be6c8785fe3eb41fc60de243bc9675a2 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Fri, 12 Feb 2016 15:53:24 +0100 Subject: [PATCH] make quantifiedcode and codacy happier --- patroni/api.py | 2 +- patroni/async_executor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patroni/api.py b/patroni/api.py index cd2023c2..07767263 100644 --- a/patroni/api.py +++ b/patroni/api.py @@ -253,7 +253,7 @@ class RestApiHandler(BaseHTTPRequestHandler): return {'tags': self.server.patroni.tags} def log_message(self, fmt, *args): - logger.debug("API thread: %s - - [%s] %s", self.client_address[0], self.log_date_time_string() + fmt % args) + logger.debug("API thread: %s - - [%s] %s", self.client_address[0], self.log_date_time_string(), fmt % args) class RestApiServer(ThreadingMixIn, HTTPServer, Thread): diff --git a/patroni/async_executor.py b/patroni/async_executor.py index 7e2fd68a..e009ab19 100644 --- a/patroni/async_executor.py +++ b/patroni/async_executor.py @@ -50,5 +50,5 @@ class AsyncExecutor(object): def __enter__(self): self._thread_lock.acquire() - def __exit__(self, exc_type, exc_value, exc_traceback): + def __exit__(self, *args): self._thread_lock.release()