mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
refactor: ruff autofixes
This commit is contained in:
455 files changed
+12322
-14762
No files matched your search
@@ -17,7 +17,6 @@
|
||||
|
||||
"""Provide a pretty logging on console"""
|
||||
|
||||
|
||||
import logging
|
||||
import sys
|
||||
import os
|
||||
@@ -28,10 +27,10 @@ from logging.handlers import RotatingFileHandler
|
||||
|
||||
|
||||
class ColouredFormatter(logging.Formatter):
|
||||
RESET = "\x1B[0m"
|
||||
RED = "\x1B[31m"
|
||||
YELLOW = "\x1B[33m"
|
||||
GREEN = "\x1B[32m"
|
||||
RESET = "\x1b[0m"
|
||||
RED = "\x1b[31m"
|
||||
YELLOW = "\x1b[33m"
|
||||
GREEN = "\x1b[32m"
|
||||
PINK = "\x1b[35m"
|
||||
|
||||
def format(self, record, colour=False):
|
||||
|
||||
Reference in new issue
Block a user