Skip to content
Permalink
Browse files

python: Fix E117 over-indented.

New check was added to recent pycodestyle-2.5.0 and flake8
complains while building on Travis:

  ../utilities/bugtool/ovs-bugtool.in:767:17: E117 over-indented
  ../utilities/bugtool/ovs-bugtool.in:771:17: E117 over-indented
  ../utilities/bugtool/ovs-bugtool.in:774:17: E117 over-indented
  ../utilities/bugtool/ovs-bugtool.in:778:17: E117 over-indented
  ../python/ovs/db/error.py:33:17: E117 over-indented
  ../python/ovs/poller.py:118:21: E117 over-indented
  ../python/ovs/reconnect.py:244:17: E117 over-indented

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information...
igsilya authored and blp committed Feb 12, 2019
1 parent fec800e commit 49b0a93389e3ad3f12ec015d57fb40b16789f193
Showing with 11 additions and 11 deletions.
  1. +1 −1 python/ovs/db/error.py
  2. +1 −1 python/ovs/poller.py
  3. +1 −1 python/ovs/reconnect.py
  4. +8 −8 utilities/bugtool/ovs-bugtool.in
@@ -30,5 +30,5 @@ def __init__(self, msg, json=None, tag=None):
# Compose message.
syntax = ""
if self.json is not None:
syntax = 'syntax "%s": ' % ovs.json.to_string(self.json)
syntax = 'syntax "%s": ' % ovs.json.to_string(self.json)
Exception.__init__(self, "%s%s: %s" % (syntax, self.tag, self.msg))
@@ -115,7 +115,7 @@ def poll(self, timeout):
False, # Wait all
timeout)
except winutils.pywintypes.error:
return [(0, POLLERR)]
return [(0, POLLERR)]

if retval == winutils.winerror.WAIT_TIMEOUT:
return []
@@ -241,7 +241,7 @@ def set_backoff(self, min_backoff, max_backoff):

if (self.state == Reconnect.Backoff and
self.backoff > self.max_backoff):
self.backoff = self.max_backoff
self.backoff = self.max_backoff

def set_backoff_free_tries(self, backoff_free_tries):
"""Sets the number of connection attempts that will be made without
@@ -764,18 +764,18 @@ def dump_scsi_hosts(cap):
for h in scsi_list:
procname = ''
try:
f = open('/sys/class/scsi_host/%s/proc_name' % h)
procname = f.readline().strip("\n")
f.close()
f = open('/sys/class/scsi_host/%s/proc_name' % h)
procname = f.readline().strip("\n")
f.close()
except:
pass
pass
modelname = None
try:
f = open('/sys/class/scsi_host/%s/model_name' % h)
modelname = f.readline().strip("\n")
f.close()
f = open('/sys/class/scsi_host/%s/model_name' % h)
modelname = f.readline().strip("\n")
f.close()
except:
pass
pass

output += "%s:\n" % h
output += " %s%s\n" \

0 comments on commit 49b0a93

Please sign in to comment.
You can’t perform that action at this time.