diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-01-31 10:15:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 10:15:31 -0500 |
commit | 1bb1896ec900622e02c1ffb59db4d3f2df4a964d (patch) | |
tree | b1339e806a8682e8fdf8582b83630cf9d20ce04a /cloudinit/config/cc_zypper_add_repo.py | |
parent | 0ecbd888c9491176ae41bbfa2b74a05234882000 (diff) | |
download | vyos-cloud-init-1bb1896ec900622e02c1ffb59db4d3f2df4a964d.tar.gz vyos-cloud-init-1bb1896ec900622e02c1ffb59db4d3f2df4a964d.zip |
cloudinit: replace "from six import X" imports (except in util.py) (#183)
Diffstat (limited to 'cloudinit/config/cc_zypper_add_repo.py')
-rw-r--r-- | cloudinit/config/cc_zypper_add_repo.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cloudinit/config/cc_zypper_add_repo.py b/cloudinit/config/cc_zypper_add_repo.py index aba26952..05855b0c 100644 --- a/cloudinit/config/cc_zypper_add_repo.py +++ b/cloudinit/config/cc_zypper_add_repo.py @@ -7,7 +7,6 @@ import configobj import os -from six import string_types from textwrap import dedent from cloudinit.config.schema import get_schema_doc @@ -110,7 +109,7 @@ def _format_repo_value(val): return 1 if val else 0 if isinstance(val, (list, tuple)): return "\n ".join([_format_repo_value(v) for v in val]) - if not isinstance(val, string_types): + if not isinstance(val, str): return str(val) return val |