Fix all pep8 E265 errors
Fixed all pep8 E265 errors and changed tox.ini to no longer ignore them. Also removed an N536 comment missed from a previous change. Change-Id: Ie6db8406c3b884c95b2a54a7598ea83476b8dba1
This commit is contained in:
@@ -640,7 +640,7 @@ def wait_until_true(predicate, timeout=60, sleep=1, exception=None):
|
||||
eventlet.sleep(sleep)
|
||||
except eventlet.Timeout:
|
||||
if exception is not None:
|
||||
#pylint: disable=raising-bad-type
|
||||
# pylint: disable=raising-bad-type
|
||||
raise exception
|
||||
raise WaitTimeout("Timed out after %d seconds" % timeout)
|
||||
|
||||
@@ -803,5 +803,5 @@ def bytes_to_bits(value):
|
||||
|
||||
|
||||
def bits_to_kilobits(value, base):
|
||||
#NOTE(slaweq): round up that even 1 bit will give 1 kbit as a result
|
||||
# NOTE(slaweq): round up that even 1 bit will give 1 kbit as a result
|
||||
return int((value + (base - 1)) / base)
|
||||
|
||||
Reference in New Issue
Block a user