pep8: Add compliance with rule E261 tools/run-dev.py.

This commit is contained in:
Aditya Bansal 2017-07-09 05:04:59 +05:30 committed by Tim Abbott
parent 73ad834129
commit 44edab1cff
2 changed files with 2 additions and 3 deletions

View File

@ -79,7 +79,6 @@ def check_pep8(files):
# TODO: Clear up this list of violations. # TODO: Clear up this list of violations.
IGNORE_FILES_PEPE261 = [ IGNORE_FILES_PEPE261 = [
'api/zulip/__init__.py', 'api/zulip/__init__.py',
'tools/run-dev.py',
'zerver/tests/test_bugdown.py', 'zerver/tests/test_bugdown.py',
'zerver/tests/test_events.py', 'zerver/tests/test_events.py',
'zerver/tests/test_messages.py', 'zerver/tests/test_messages.py',

View File

@ -100,7 +100,7 @@ if options.interface is None:
elif options.interface == "": elif options.interface == "":
options.interface = None options.interface = None
runserver_args = [] # type: List[str] runserver_args = [] # type: List[str]
base_port = 9991 base_port = 9991
if options.test: if options.test:
base_port = 9981 base_port = 9981
@ -227,7 +227,7 @@ class BaseWebsocketHandler(WebSocketHandler):
# type: (*Any, **Any) -> None # type: (*Any, **Any) -> None
super(BaseWebsocketHandler, self).__init__(*args, **kwargs) super(BaseWebsocketHandler, self).__init__(*args, **kwargs)
# define client for target websocket server # define client for target websocket server
self.client = None # type: Any self.client = None # type: Any
def get(self, *args, **kwargs): def get(self, *args, **kwargs):
# type: (*Any, **Any) -> Optional[Callable] # type: (*Any, **Any) -> Optional[Callable]