From 5ae899701b464b343c026bb1d9f6edf85a129985 Mon Sep 17 00:00:00 2001 From: Dina Belova Date: Mon, 3 Jun 2013 17:44:55 +0400 Subject: [PATCH] Enable hacking H404 test. H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd --- openstack/common/gettextutils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openstack/common/gettextutils.py b/openstack/common/gettextutils.py index d6b5f10..0e27425 100644 --- a/openstack/common/gettextutils.py +++ b/openstack/common/gettextutils.py @@ -75,9 +75,10 @@ def get_lazy_gettext(domain): """ def _lazy_gettext(msg): - """ - Create and return a Message object encapsulating a string - so that we can translate it later when needed. + """Create and return a Message object. + + Message encapsulates a string so that we can translate it later when + needed. """ return Message(msg, domain) @@ -207,8 +208,7 @@ class LocaleHandler(logging.Handler): """ def __init__(self, locale, target): - """ - Initialize a LocaleHandler + """Initialize a LocaleHandler :param locale: locale to use for translating messages :param target: logging.Handler object to forward