Enable PEP8 checks for F401, E202, E271, E272, E711, E712

* F401 module imported but unused
* E271 multiple spaces after keyword
* E272 multiple spaces before keyword
* E202 remove extraneous whitespace
* E711 comparison to None should be 'if cond is None:'
* E712 comparison to True/False should be 'if cond is True/False:' or 'if cond:'

Change-Id: I56a1dbee2ae17b8315a55215e2c676e0de8311f7
This commit is contained in:
Christian Berendt
2015-01-16 12:59:54 +01:00
parent 64c2850441
commit 713b745e0e
17 changed files with 12 additions and 36 deletions

View File

@@ -86,7 +86,7 @@ class Controller(object):
sequence will be inserted BEFORE "update x"
"""
index = self.__getSequenceIndexByDesc(sequenceName)
if index == None:
if index is None:
index = len(self.getAllSequences())
self.__SEQUENCES.insert(index, Sequence(desc,
steps_new_format(steps),
@@ -119,7 +119,7 @@ class Controller(object):
group will be inserted BEFORE "update x"
"""
index = self.__getGroupIndexByDesc(groupName)
if index == None:
if index is None:
index = len(self.getAllGroups())
self.__GROUPS.insert(index, Group(group, params))