Mercurial > libervia-backend
diff sat_frontends/jp/cmd_pubsub.py @ 2805:dfba1301e61c
jp(pubsub): minor code style fixes
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 15 Feb 2019 22:24:57 +0100 |
parents | 710de41da2f2 |
children | b2f323237fce |
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_pubsub.py Fri Feb 15 22:13:43 2019 +0100 +++ b/sat_frontends/jp/cmd_pubsub.py Fri Feb 15 22:24:57 2019 +0100 @@ -698,8 +698,8 @@ try: from lxml import etree except ImportError: - self.disp( - u'lxml module must be installed to use edit, please install it with "pip install lxml"', + self.disp(u'lxml module must be installed to use edit, please install it ' + u'with "pip install lxml"', error=True, ) self.host.quit(1) @@ -975,8 +975,8 @@ try: from lxml import etree except ImportError: - self.disp( - u'lxml module must be installed to use edit, please install it with "pip install lxml"', + self.disp(u'lxml module must be installed to use edit, please install it ' + u'with "pip install lxml"', error=True, ) self.host.quit(1) @@ -1191,9 +1191,8 @@ "--max-depth", type=int, default=0, - help=_( - u"maximum depth of recursion (will search linked nodes if > 0, DEFAULT: 0)" - ), + help=_(u"maximum depth of recursion (will search linked nodes if > 0, " + u"DEFAULT: 0)"), ) self.parser.add_argument( "-M", @@ -1256,8 +1255,9 @@ dest="filters", type=filter_python, metavar="PYTHON_CODE", - help=_( - u'Python expression which much return a bool (True to keep item, False to reject it). "item" is raw text item, "item_xml" is lxml\'s etree.Element' + help=_(u'Python expression which much return a bool (True to keep item, ' + u'False to reject it). "item" is raw text item, "item_xml" is ' + u'lxml\'s etree.Element' ), ) @@ -1386,9 +1386,8 @@ return self.etree.fromstring(item) except self.etree.XMLSyntaxError: self.disp( - _( - u"item doesn't looks like XML, you have probably used --only-matching somewhere before and we have no more XML" - ), + _(u"item doesn't looks like XML, you have probably used --only-matching " + u"somewhere before and we have no more XML"), error=True, ) self.host.quit(C.EXIT_BAD_ARG)