Make pylint ♥
This commit is contained in:
parent
0d84ee1c24
commit
b91b89a341
@ -139,8 +139,8 @@ class AbstractQubesMgmt(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
for method, endpoint in func._rpcname:
|
for method_name, endpoint in func._rpcname:
|
||||||
if method != self.method:
|
if method_name != self.method:
|
||||||
continue
|
continue
|
||||||
untrusted_candidates.append((func, endpoint))
|
untrusted_candidates.append((func, endpoint))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
|
import inspect
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
import string # pylint: disable=deprecated-module
|
import string # pylint: disable=deprecated-module
|
||||||
@ -394,10 +395,10 @@ class Storage(object):
|
|||||||
clone_op[name] = asyncio.ensure_future(clone_op_ret)
|
clone_op[name] = asyncio.ensure_future(clone_op_ret)
|
||||||
|
|
||||||
yield from asyncio.wait(x for x in clone_op.values()
|
yield from asyncio.wait(x for x in clone_op.values()
|
||||||
if asyncio.isfuture(x))
|
if inspect.isawaitable(x))
|
||||||
|
|
||||||
for name, clone_op_ret in clone_op.items():
|
for name, clone_op_ret in clone_op.items():
|
||||||
if asyncio.isfuture(clone_op_ret):
|
if inspect.isawaitable(clone_op_ret):
|
||||||
volume = clone_op_ret.result
|
volume = clone_op_ret.result
|
||||||
else:
|
else:
|
||||||
volume = clone_op_ret
|
volume = clone_op_ret
|
||||||
|
@ -64,6 +64,7 @@ def _setter_ip(self, prop, value):
|
|||||||
|
|
||||||
|
|
||||||
def _setter_netvm(self, prop, value):
|
def _setter_netvm(self, prop, value):
|
||||||
|
# pylint: disable=unused-argument
|
||||||
if value is None:
|
if value is None:
|
||||||
return
|
return
|
||||||
if not value.provides_network:
|
if not value.provides_network:
|
||||||
|
Loading…
Reference in New Issue
Block a user