Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gajim/common/logging_helpers.py')
-rw-r--r--gajim/common/logging_helpers.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gajim/common/logging_helpers.py b/gajim/common/logging_helpers.py
index 3e9e2577f..3cc5e9d7e 100644
--- a/gajim/common/logging_helpers.py
+++ b/gajim/common/logging_helpers.py
@@ -15,7 +15,6 @@
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
from typing import Callable
-from typing import Optional
import logging
import os
@@ -142,8 +141,8 @@ class FancyFormatter(logging.Formatter):
}
def __init__(self,
- fmt: Optional[str] = None,
- datefmt: Optional[str] = None,
+ fmt: str | None = None,
+ datefmt: str | None = None,
use_color: bool = False) -> None:
logging.Formatter.__init__(self, fmt, datefmt)
self.use_color = use_color