Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 916f84d

Browse files
committed
Keepy flake8 happy.
1 parent b021212 commit 916f84d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

bin/zerorpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import os
2727
import sys
2828
sys.path.append(os.path.dirname(os.path.dirname(sys.argv[0])))
2929

30-
from zerorpc import cli
30+
from zerorpc import cli # NOQA
3131

3232
if __name__ == "__main__":
3333
exit(cli.main())

zerorpc/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def zerorpc_inspect(client, method=None, long_doc=True, include_argspec=True):
222222
if not isinstance(remote_methods, dict):
223223
(longest_name_len,
224224
detailled_methods) = zerorpc_inspect_python_argspecs(
225-
remote_methods, method, long_doc, include_argspec)
225+
remote_methods, method, long_doc, include_argspec)
226226

227227
(longest_name_len, detailled_methods) = zerorpc_inspect_generic(
228228
remote_methods, method, long_doc, include_argspec)

zerorpc/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ def _filter_methods(cls, self, methods):
7373
server_methods = set(k for k in dir(cls) if not k.startswith('_'))
7474
return dict((k, getattr(methods, k))
7575
for k in dir(methods)
76-
if callable(getattr(methods, k))
77-
and not k.startswith('_')
78-
and k not in server_methods
76+
if callable(getattr(methods, k)) and
77+
not k.startswith('_') and k not in server_methods
7978
)
8079

8180
@staticmethod

0 commit comments

Comments
 (0)