remove python2 support from awxkit

This commit is contained in:
Ryan Petrello
2020-03-18 09:06:20 -04:00
parent db7f0f9421
commit 06b3e54fb1
18 changed files with 27 additions and 116 deletions

View File

@@ -7,7 +7,6 @@ import sys
import yaml
from distutils.util import strtobool
import six
from .custom import CustomAction
from .format import add_output_formatting_arguments
@@ -182,7 +181,7 @@ class ResourceOptionsParser(object):
for k, v in parsed.items():
# add support for file reading at top-level JSON keys
# (to make things like SSH key data easier to work with)
if isinstance(v, six.text_type) and v.startswith('@'):
if isinstance(v, str) and v.startswith('@'):
path = os.path.expanduser(v[1:])
parsed[k] = open(path).read()