Merge "update pylint to 1.9.2"
This commit is contained in:
commit
815bba304b
|
@ -44,7 +44,7 @@ symbols=no
|
|||
# --enable=similarities". If you want to run only the classes checker, but have
|
||||
# no Warning level messages displayed, use"--disable=all --enable=classes
|
||||
# --disable=W"
|
||||
disable=W,C,R,E1002,no-member
|
||||
disable=W,C,R,E1002,no-member,import-error,non-iterator-returned
|
||||
|
||||
|
||||
[REPORTS]
|
||||
|
|
|
@ -249,7 +249,10 @@ class BackupEngine(object):
|
|||
max_level = max(backups.keys())
|
||||
|
||||
# Use SimpleQueue because Queue does not work on Mac OS X.
|
||||
read_except_queue = queues.SimpleQueue()
|
||||
if six.PY2:
|
||||
read_except_queue = queues.SimpleQueue()
|
||||
else:
|
||||
read_except_queue = multiprocessing.SimpleQueue()
|
||||
LOG.info("Restoring backup {0}".format(hostname_backup_name))
|
||||
for level in range(0, max_level + 1):
|
||||
LOG.info("Restoring from level {0}".format(level))
|
||||
|
@ -266,7 +269,10 @@ class BackupEngine(object):
|
|||
# Start the tar pipe consumer process
|
||||
|
||||
# Use SimpleQueue because Queue does not work on Mac OS X.
|
||||
write_except_queue = queues.SimpleQueue()
|
||||
if six.PY2:
|
||||
write_except_queue = queues.SimpleQueue()
|
||||
else:
|
||||
write_except_queue = multiprocessing.SimpleQueue()
|
||||
|
||||
engine_stream = multiprocessing.Process(
|
||||
target=self.restore_level,
|
||||
|
|
|
@ -32,12 +32,7 @@ import signal
|
|||
import socket
|
||||
import sys
|
||||
|
||||
# PY2 / PY3 gap
|
||||
PY3 = sys.version_info[0] == 3
|
||||
if PY3:
|
||||
string_types = str,
|
||||
else:
|
||||
string_types = basestring,
|
||||
import six
|
||||
|
||||
|
||||
class DaemonError(Exception):
|
||||
|
@ -176,7 +171,7 @@ class DaemonContext(object):
|
|||
"""
|
||||
if not handler:
|
||||
result = signal.SIG_IGN
|
||||
elif isinstance(handler, string_types):
|
||||
elif isinstance(handler, six.string_types):
|
||||
result = getattr(self, handler)
|
||||
else:
|
||||
result = handler
|
||||
|
|
|
@ -69,7 +69,10 @@ class AdminOs(object):
|
|||
start_time > timeout):
|
||||
LOG.error("Delete backup %s failed, In a state of"
|
||||
"deleting over 120s")
|
||||
raise
|
||||
raise Exception(
|
||||
"Delete backup %s failed due to timeout over 120s, "
|
||||
"the status of backup is %s."
|
||||
% (backup_id, del_backup[0].status))
|
||||
timer = loopingcall.FixedIntervalLoopingCall(wait_del_backup)
|
||||
timer.start(interval=0.5).wait()
|
||||
|
||||
|
|
|
@ -6,13 +6,13 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
|||
coverage!=4.4,>=4.0 # Apache-2.0
|
||||
ddt>=1.0.1 # MIT
|
||||
mock>=2.0.0 # BSD
|
||||
pylint==1.4.5 # GPLv2
|
||||
pylint==1.9.2 # GPLv2
|
||||
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
|
||||
openstackdocstheme>=1.18.1 # Apache-2.0
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
testtools>=2.2.0 # MIT
|
||||
reno>=2.5.0 # Apache-2.0
|
||||
astroid<1.4.0 # LGPLv2.1 # breaks pylint 1.4.4
|
||||
astroid==1.6.5 # LGPLv2.1
|
||||
|
||||
# Tempest Plugin
|
||||
tempest>=17.1.0 # Apache-2.0
|
||||
|
|
Loading…
Reference in New Issue