Skip to content

Commit

Permalink
Keepy flake8 happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
bombela committed Mar 21, 2016
1 parent b021212 commit 916f84d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/zerorpc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(sys.argv[0])))

from zerorpc import cli
from zerorpc import cli # NOQA

if __name__ == "__main__":
exit(cli.main())
2 changes: 1 addition & 1 deletion zerorpc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def zerorpc_inspect(client, method=None, long_doc=True, include_argspec=True):
if not isinstance(remote_methods, dict):
(longest_name_len,
detailled_methods) = zerorpc_inspect_python_argspecs(
remote_methods, method, long_doc, include_argspec)
remote_methods, method, long_doc, include_argspec)

(longest_name_len, detailled_methods) = zerorpc_inspect_generic(
remote_methods, method, long_doc, include_argspec)
Expand Down
5 changes: 2 additions & 3 deletions zerorpc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ def _filter_methods(cls, self, methods):
server_methods = set(k for k in dir(cls) if not k.startswith('_'))
return dict((k, getattr(methods, k))
for k in dir(methods)
if callable(getattr(methods, k))
and not k.startswith('_')
and k not in server_methods
if callable(getattr(methods, k)) and
not k.startswith('_') and k not in server_methods
)

@staticmethod
Expand Down

0 comments on commit 916f84d

Please sign in to comment.