Fix issues with pylint 4.0.

This commit is contained in:
Felix Fontein
2025-10-13 22:09:31 +02:00
parent 16b5bfa27b
commit 6f9ebc3f14
6 changed files with 31 additions and 29 deletions
+4 -3
View File
@@ -42,11 +42,12 @@ try:
from yaml import CSafeDumper as _SafeDumper
except ImportError:
from yaml import SafeDumper as _SafeDumper
HAS_PYYAML = True
PYYAML_IMPORT_ERROR = None
except ImportError:
HAS_PYYAML = False
PYYAML_IMPORT_ERROR = traceback.format_exc()
PYYAML_IMPORT_ERROR = traceback.format_exc() # pylint: disable=invalid-name
else:
HAS_PYYAML = True
PYYAML_IMPORT_ERROR = None # pylint: disable=invalid-name
DOCKER_COMPOSE_FILES = (