diff options
author | James Falcon <TheRealFalcon@users.noreply.github.com> | 2021-06-15 15:25:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 14:25:37 -0600 |
commit | 950c186a7e0c66a3ed84ea97291e5829ca3d826c (patch) | |
tree | a624ee5ffea1b76fe47fa6fda9184949d752e8e9 | |
parent | 59a3d84562a0fdeb16a4a566371294790d110ad4 (diff) | |
download | vyos-cloud-init-950c186a7e0c66a3ed84ea97291e5829ca3d826c.tar.gz vyos-cloud-init-950c186a7e0c66a3ed84ea97291e5829ca3d826c.zip |
Replace deprecated collections.Iterable with abc replacement (#922)
LP: #1932048
-rw-r--r-- | cloudinit/log.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/log.py b/cloudinit/log.py index 2e5df042..10149907 100644 --- a/cloudinit/log.py +++ b/cloudinit/log.py @@ -8,7 +8,7 @@ # # This file is part of cloud-init. See LICENSE file for license information. -import collections +import collections.abc import io import logging import logging.config @@ -78,7 +78,7 @@ def setupLogging(cfg=None): for a_cfg in cfg['log_cfgs']: if isinstance(a_cfg, str): log_cfgs.append(a_cfg) - elif isinstance(a_cfg, (collections.Iterable)): + elif isinstance(a_cfg, (collections.abc.Iterable)): cfg_str = [str(c) for c in a_cfg] log_cfgs.append('\n'.join(cfg_str)) else: |