From 32b2c727f31d9429427838b9afc2b587d9f28f9d Mon Sep 17 00:00:00 2001 From: euri10 Date: Sun, 12 Apr 2020 06:04:44 +0200 Subject: [PATCH] Removed python 3.6 specific (linked to #328) as logger kwarg is not in use anymore --- uvicorn/config.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/uvicorn/config.py b/uvicorn/config.py index 3292430675..0f30d9f87f 100644 --- a/uvicorn/config.py +++ b/uvicorn/config.py @@ -207,20 +207,6 @@ def is_ssl(self) -> bool: def configure_logging(self): logging.addLevelName(TRACE_LOG_LEVEL, "TRACE") - if sys.version_info < (3, 7): - # https://bugs.python.org/issue30520 - import pickle - - def __reduce__(self): - if isinstance(self, logging.RootLogger): - return logging.getLogger, () - - if logging.getLogger(self.name) is not self: - raise pickle.PicklingError("logger cannot be pickled") - return logging.getLogger, (self.name,) - - logging.Logger.__reduce__ = __reduce__ - if self.log_config is not None: if isinstance(self.log_config, dict): if self.use_colors in (True, False):