From 0731ab973d2c0fbd0d622c00ed2b8035499f714c Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 29 Oct 2015 04:36:46 +0100 Subject: [PATCH] pylint --- patacrep/latex/__init__.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/patacrep/latex/__init__.py b/patacrep/latex/__init__.py index f863def0..78251f4e 100644 --- a/patacrep/latex/__init__.py +++ b/patacrep/latex/__init__.py @@ -91,9 +91,19 @@ def lang2babel(lang): language = lang.lower().split("_")[0] for babel in BABEL_LANGUAGES: if babel.startswith(language): - LOGGER.error("Unknown country code '{}'. Using default '{}' instead.".format(lang, babel)) + LOGGER.error( + "Unknown country code '{}'. Using default '{}' instead.".format( + lang, + babel + ) + ) return BABEL_LANGUAGES[babel] except KeyError: available = ", ".join(BABEL_LANGUAGES.keys()) - LOGGER.error("Unknown language code '{}' (supported: {}). Using default 'english' instead.".format(lang, available)) + LOGGER.error( + "Unknown language code '{}' (supported: {}). Using default 'english' instead.".format( + lang, + available + ) + ) return 'english'