Skip to content

Commit

Permalink
Fixed error on python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
RedRem95 committed Jan 31, 2022
1 parent b39aa59 commit 47ccadb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions j_chess_client_manager/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@

class _CustomQueueHandler(QueueHandler):

def __init__(self, code: str, log_queue: queue.Queue[Tuple[str, logging.LogRecord]]):
def __init__(self, code: str, log_queue):
super().__init__(log_queue)
self._code = code

def enqueue(self, record: LogRecord) -> None:
self.queue.put((self._code, record))


LOG_QUEUE: queue.Queue[Tuple[str, logging.LogRecord]] = queue.Queue()
LOG_QUEUE = queue.Queue()


def get_log_handler(code: str) -> logging.Handler:
Expand Down

0 comments on commit 47ccadb

Please sign in to comment.