code formatting

This commit is contained in:
Andreas Lutro 2015-07-23 15:16:49 +02:00
parent e58d222fb0
commit aefd0fb374

View File

@ -260,10 +260,12 @@ def gen_locale(locale, **kwargs):
if on_debian or on_gentoo: # file-based search if on_debian or on_gentoo: # file-based search
path = '/usr/share/i18n/SUPPORTED' path = '/usr/share/i18n/SUPPORTED'
def search_locale(): def search_locale():
return __salt__['file.search'](path, return __salt__['file.search'](path,
'^{0}$'.format(locale), '^{0}$'.format(locale),
flags=re.MULTILINE) flags=re.MULTILINE)
valid = search_locale() valid = search_locale()
if not valid and not locale_info['charmap']: if not valid and not locale_info['charmap']:
# charmap was not supplied, so try copying the codeset # charmap was not supplied, so try copying the codeset