lint: Clean up E241 PEP-8 rule.
This commit is contained in:
parent
f0f18c8f1b
commit
5b3d2c9100
|
@ -76,20 +76,20 @@ if options.sharded:
|
||||||
("message", "p"),
|
("message", "p"),
|
||||||
("tabbott-nagios-test-32", "0"),
|
("tabbott-nagios-test-32", "0"),
|
||||||
("tabbott-nagios-test-33", "1"),
|
("tabbott-nagios-test-33", "1"),
|
||||||
("tabbott-nagios-test-2", "2"),
|
("tabbott-nagios-test-2", "2"),
|
||||||
("tabbott-nagios-test-5", "3"),
|
("tabbott-nagios-test-5", "3"),
|
||||||
("tabbott-nagios-test-13", "4"),
|
("tabbott-nagios-test-13", "4"),
|
||||||
("tabbott-nagios-test-7", "5"),
|
("tabbott-nagios-test-7", "5"),
|
||||||
("tabbott-nagios-test-22", "6"),
|
("tabbott-nagios-test-22", "6"),
|
||||||
("tabbott-nagios-test-35", "7"),
|
("tabbott-nagios-test-35", "7"),
|
||||||
("tabbott-nagios-test-4", "8"),
|
("tabbott-nagios-test-4", "8"),
|
||||||
("tabbott-nagios-test-3", "9"),
|
("tabbott-nagios-test-3", "9"),
|
||||||
("tabbott-nagios-test-1", "a"),
|
("tabbott-nagios-test-1", "a"),
|
||||||
("tabbott-nagios-test-49", "b"),
|
("tabbott-nagios-test-49", "b"),
|
||||||
("tabbott-nagios-test-34", "c"),
|
("tabbott-nagios-test-34", "c"),
|
||||||
("tabbott-nagios-test-12", "d"),
|
("tabbott-nagios-test-12", "d"),
|
||||||
("tabbott-nagios-test-11", "e"),
|
("tabbott-nagios-test-11", "e"),
|
||||||
("tabbott-nagios-test-9", "f"),
|
("tabbott-nagios-test-9", "f"),
|
||||||
]
|
]
|
||||||
for (stream, test) in test_streams:
|
for (stream, test) in test_streams:
|
||||||
if stream == "message":
|
if stream == "message":
|
||||||
|
|
|
@ -41,7 +41,7 @@ import zulip
|
||||||
parser = optparse.OptionParser(usage=usage)
|
parser = optparse.OptionParser(usage=usage)
|
||||||
parser.add_option('--message-id', default="")
|
parser.add_option('--message-id', default="")
|
||||||
parser.add_option('--subject', default="")
|
parser.add_option('--subject', default="")
|
||||||
parser.add_option('--content', default="")
|
parser.add_option('--content', default="")
|
||||||
parser.add_option_group(zulip.generate_option_group(parser))
|
parser.add_option_group(zulip.generate_option_group(parser))
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ You can omit --user and --api-key arguments if you have a properly set up ~/.zul
|
||||||
parser = optparse.OptionParser(usage=usage)
|
parser = optparse.OptionParser(usage=usage)
|
||||||
parser.add_option('--subject', default="test")
|
parser.add_option('--subject', default="test")
|
||||||
parser.add_option('--message', default="test message")
|
parser.add_option('--message', default="test message")
|
||||||
parser.add_option('--type', default='private')
|
parser.add_option('--type', default='private')
|
||||||
parser.add_option_group(zulip.generate_option_group(parser))
|
parser.add_option_group(zulip.generate_option_group(parser))
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,10 @@ VERSION = "0.9"
|
||||||
# In Nagios, "output" means "first line of output", and "long
|
# In Nagios, "output" means "first line of output", and "long
|
||||||
# output" means "other lines of output".
|
# output" means "other lines of output".
|
||||||
parser = optparse.OptionParser() # type: optparse.OptionParser
|
parser = optparse.OptionParser() # type: optparse.OptionParser
|
||||||
parser.add_option('--output', default='')
|
parser.add_option('--output', default='')
|
||||||
parser.add_option('--long-output', default='')
|
parser.add_option('--long-output', default='')
|
||||||
parser.add_option('--stream', default='nagios')
|
parser.add_option('--stream', default='nagios')
|
||||||
parser.add_option('--config', default='/etc/nagios3/zuliprc')
|
parser.add_option('--config', default='/etc/nagios3/zuliprc')
|
||||||
for opt in ('type', 'host', 'service', 'state'):
|
for opt in ('type', 'host', 'service', 'state'):
|
||||||
parser.add_option('--' + opt)
|
parser.add_option('--' + opt)
|
||||||
(opts, args) = parser.parse_args() # type: Any, List[Text]
|
(opts, args) = parser.parse_args() # type: Any, List[Text]
|
||||||
|
|
Loading…
Reference in a new issue