mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 03:46:55 +00:00
Fix issues with pylint 4.0.
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user