Make pylint happy
This commit is contained in:
parent
e8c48ff7c8
commit
2d736f5aa8
@ -13,6 +13,7 @@ extension-pkg-whitelist=lxml.etree
|
|||||||
disable=
|
disable=
|
||||||
bad-continuation,
|
bad-continuation,
|
||||||
raising-format-tuple,
|
raising-format-tuple,
|
||||||
|
import-outside-toplevel,
|
||||||
inconsistent-return-statements,
|
inconsistent-return-statements,
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
fixme,
|
fixme,
|
||||||
|
@ -555,10 +555,8 @@ class ExtractWorker3(Process):
|
|||||||
file_size = int(match.groups()[0])
|
file_size = int(match.groups()[0])
|
||||||
size_func(file_size)
|
size_func(file_size)
|
||||||
break
|
break
|
||||||
else:
|
self.log.warning(
|
||||||
self.log.warning(
|
'unexpected tar output (no file size report): %s', line)
|
||||||
'unexpected tar output (no file size report): %s',
|
|
||||||
line)
|
|
||||||
|
|
||||||
return data_func(tar2_process.stdout)
|
return data_func(tar2_process.stdout)
|
||||||
|
|
||||||
|
@ -359,7 +359,7 @@ class WrapperObjectsCollection(object):
|
|||||||
def keys(self):
|
def keys(self):
|
||||||
'''Get list of names.'''
|
'''Get list of names.'''
|
||||||
self.refresh_cache()
|
self.refresh_cache()
|
||||||
return [key for key in self._names_list]
|
return list(self._names_list)
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
'''Get list of (key, value) pairs'''
|
'''Get list of (key, value) pairs'''
|
||||||
|
@ -176,8 +176,7 @@ class EventsDispatcher(object):
|
|||||||
except asyncio.IncompleteReadError as err:
|
except asyncio.IncompleteReadError as err:
|
||||||
if err.partial == b'':
|
if err.partial == b'':
|
||||||
break
|
break
|
||||||
else:
|
raise
|
||||||
raise
|
|
||||||
|
|
||||||
if not subject:
|
if not subject:
|
||||||
subject = None
|
subject = None
|
||||||
|
@ -256,7 +256,7 @@ def main(args=None, app=None):
|
|||||||
|
|
||||||
if args.pass_file is None:
|
if args.pass_file is None:
|
||||||
if input("Do you want to proceed? [y/N] ").upper() != "Y":
|
if input("Do you want to proceed? [y/N] ").upper() != "Y":
|
||||||
exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
backup.restore_do(restore_info)
|
backup.restore_do(restore_info)
|
||||||
|
@ -634,7 +634,8 @@ def main(args=None, app=None):
|
|||||||
if set(dom.tags).intersection(set(args.tags))]
|
if set(dom.tags).intersection(set(args.tags))]
|
||||||
|
|
||||||
pwrstates = {state: getattr(args, state) for state in DOMAIN_POWER_STATES}
|
pwrstates = {state: getattr(args, state) for state in DOMAIN_POWER_STATES}
|
||||||
domains = filter(lambda x: matches_power_states(x, **pwrstates), domains)
|
domains = [d for d in domains
|
||||||
|
if matches_power_states(d, **pwrstates)]
|
||||||
|
|
||||||
table = Table(domains, columns, spinner, args.raw_data)
|
table = Table(domains, columns, spinner, args.raw_data)
|
||||||
table.write_table(sys.stdout)
|
table.write_table(sys.stdout)
|
||||||
|
Loading…
Reference in New Issue
Block a user