From 3cb7e4bd0ef603720dbe7f57848164101deab713 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 31 Aug 2016 07:48:10 -0700 Subject: [PATCH] Style cleanups: * Don't use iterkeys * Don't use wildcard imports --- lib/ansible/modules/extras/system/timezone.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/extras/system/timezone.py b/lib/ansible/modules/extras/system/timezone.py index ccf7a5829a..9c616d6123 100644 --- a/lib/ansible/modules/extras/system/timezone.py +++ b/lib/ansible/modules/extras/system/timezone.py @@ -20,7 +20,9 @@ import os import re -from ansible.module_utils.six import iteritems, iterkeys +from ansible.module_utils.basic import AnsibleModule, get_platform +from ansible.module_utils.six import iteritems + DOCUMENTATION = ''' --- @@ -111,7 +113,7 @@ class Timezone(object): # Initially there's only info of "planned" phase, but the # `self.check()` function will fill out it. self.value = dict() - for key in iterkeys(module.argument_spec): + for key in module.argument_spec: value = module.params[key] if value is not None: self.value[key] = dict(planned=value) @@ -456,7 +458,5 @@ def main(): module.exit_json(changed=changed, diff=diff) -from ansible.module_utils.basic import * - if __name__ == '__main__': main()