From 8ce627d9a2770967c0c51195804920fb04bdbd01 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Fri, 3 Jun 2016 06:25:29 -0700 Subject: [PATCH] Only import get_exception once in locale_gen.py --- lib/ansible/modules/extras/system/locale_gen.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/ansible/modules/extras/system/locale_gen.py b/lib/ansible/modules/extras/system/locale_gen.py index 48cfb3ed8b..7dbb9d5e96 100644 --- a/lib/ansible/modules/extras/system/locale_gen.py +++ b/lib/ansible/modules/extras/system/locale_gen.py @@ -15,11 +15,6 @@ # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . -import os -import os.path -from subprocess import Popen, PIPE, call -import re -from ansible.module_utils.pycompat24 import get_exception DOCUMENTATION = ''' --- @@ -48,6 +43,14 @@ EXAMPLES = ''' - locale_gen: name=de_CH.UTF-8 state=present ''' +import os +import os.path +from subprocess import Popen, PIPE, call +import re + +from ansible.module_utils.basic import * +from ansible.module_utils.pycompat24 import get_exception + LOCALE_NORMALIZATION = { ".utf8": ".UTF-8", ".eucjp": ".EUC-JP", @@ -65,9 +68,6 @@ LOCALE_NORMALIZATION = { # location module specific support methods. # -from ansible.module_utils.basic import * -from ansible.module_utils.pycompat24 import get_exception - def is_available(name, ubuntuMode): """Check if the given locale is available on the system. This is done by checking either :