From 5402af2c7198a685a57a05e29a869e1e72a6b877 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 19 Feb 2025 15:55:50 +0000 Subject: style: format code with Autopep8, Black and Ruff Formatter This commit fixes the style issues introduced in b402ee5 according to the output from Autopep8, Black and Ruff Formatter. Details: https://github.com/ajschofield/gdpr-obfuscator/pull/8 --- obfuscator/logger.py | 1 - obfuscator/utils.py | 1 - 2 files changed, 2 deletions(-) (limited to 'obfuscator') diff --git a/obfuscator/logger.py b/obfuscator/logger.py index 2c5b988..140fa8f 100644 --- a/obfuscator/logger.py +++ b/obfuscator/logger.py @@ -12,7 +12,6 @@ class LogLevel(Enum): def get_logger(name: str, level: LogLevel = LogLevel.INFO) -> logging.Logger: - if isinstance(level, str): try: level = LogLevel[level.upper()] diff --git a/obfuscator/utils.py b/obfuscator/utils.py index f61451b..77ca1cf 100644 --- a/obfuscator/utils.py +++ b/obfuscator/utils.py @@ -3,7 +3,6 @@ from obfuscator.logger import get_logger class Utilities: - def __init__(self, logger=None): self.logger = get_logger("UTILITIES", logger) -- cgit v1.2.3