diff --git a/os_apply_config/oac_file.py b/os_apply_config/oac_file.py index 0a39059..f341d97 100644 --- a/os_apply_config/oac_file.py +++ b/os_apply_config/oac_file.py @@ -16,8 +16,6 @@ import grp import pwd -import six - from os_apply_config import config_exception as exc @@ -33,10 +31,10 @@ class OacFile(object): super(OacFile, self).__init__() self.body = body - for k, v in six.iteritems(self.DEFAULTS): + for k, v in self.DEFAULTS.items(): setattr(self, '_' + k, v) - for k, v in six.iteritems(kwargs): + for k, v in kwargs.items(): if not hasattr(self, k): raise exc.ConfigException( "unrecognised file control key '%s'" % (k)) @@ -52,7 +50,7 @@ class OacFile(object): def __repr__(self): a = ["OacFile(%s" % repr(self.body)] - for key, default in six.iteritems(self.DEFAULTS): + for key, default in self.DEFAULTS.items(): value = getattr(self, key) if value != default: a.append("%s=%s" % (key, repr(value))) diff --git a/requirements.txt b/requirements.txt index f05c6cd..185a539 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,3 @@ pbr!=2.1.0,>=2.0.0 # Apache-2.0 pystache>=0.5.4 # MIT PyYAML>=3.12 # MIT -six>=1.10.0 # MIT