mirror of https://github.com/zulip/zulip.git
lint: Clean up E306 PEP-8 rule.
This commit is contained in:
parent
e3e92903eb
commit
e5daec46ec
|
@ -423,6 +423,7 @@ class Client(object):
|
||||||
# type: (Callable, Optional[List[str]], Any) -> None
|
# type: (Callable, Optional[List[str]], Any) -> None
|
||||||
if narrow is None:
|
if narrow is None:
|
||||||
narrow = []
|
narrow = []
|
||||||
|
|
||||||
def do_register():
|
def do_register():
|
||||||
# type: () -> Tuple[str, int]
|
# type: () -> Tuple[str, int]
|
||||||
while True:
|
while True:
|
||||||
|
|
|
@ -4,9 +4,11 @@ def test():
|
||||||
for cmd, expected_response in sample_conversation():
|
for cmd, expected_response in sample_conversation():
|
||||||
message = {'content': cmd, 'subject': 'foo',
|
message = {'content': cmd, 'subject': 'foo',
|
||||||
'display_recipient': 'bar'}
|
'display_recipient': 'bar'}
|
||||||
|
|
||||||
class ClientDummy(object):
|
class ClientDummy(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.output = ''
|
self.output = ''
|
||||||
|
|
||||||
def send_message(self, params):
|
def send_message(self, params):
|
||||||
self.output = params['content']
|
self.output = params['content']
|
||||||
handler = converter.ConverterHandler()
|
handler = converter.ConverterHandler()
|
||||||
|
|
|
@ -88,7 +88,7 @@ def check_pep8(files):
|
||||||
# actually be cleaned up.
|
# actually be cleaned up.
|
||||||
#
|
#
|
||||||
'E123', 'E126', 'E226', 'E241', 'E261', 'E302',
|
'E123', 'E126', 'E226', 'E241', 'E261', 'E302',
|
||||||
'E306', 'E401', 'E501', 'E702', 'E711', 'E712', 'E713', 'E714',
|
'E401', 'E501', 'E702', 'E711', 'E712', 'E713', 'E714',
|
||||||
'E741',
|
'E741',
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue