Skip to content

Commit 3c3750c

Browse files
committed
flake8 passe again
1 parent 2c790fa commit 3c3750c

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Lib/ValidationFunctions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def isNumber(value):
7474
def checkPositiveInt(self, name, value):
7575
if not isNumber(value):
7676
raise ValueError(name + ' must be an integer')
77-
elif (not (isinstance(value, int) or isinstance(value, long))
78-
and (not int(value) == value)):
77+
elif (not (isinstance(value, int) or isinstance(value, long)) and
78+
(not int(value) == value)):
7979
raise ValueError(name + ' must be an integer')
8080
elif value < 0:
8181
raise ValueError(name + ' must be positve')
@@ -172,8 +172,7 @@ def checkSide(self, name, value):
172172
def checkLoc(self, name, value):
173173
""" check the loc (auto) or a location """
174174
if not (
175-
(isinstance(value, str) and value.lower() == 'auto')
176-
or
175+
(isinstance(value, str) and value.lower() == 'auto') or
177176
isListorTuple(value)
178177
):
179178
raise ValueError(name + 'must be a "auto" or a tuple/list')
@@ -296,8 +295,7 @@ def checkFormat(self, name, value):
296295
def checkAuto(self, name, value):
297296
""" check for 'auto' or a value """
298297
if not (
299-
(isinstance(value, str) and value.lower() == 'auto')
300-
or
298+
(isinstance(value, str) and value.lower() == 'auto') or
301299
isNumber(value)
302300
):
303301
raise ValueError(name + 'must be a "auto" or a number')

0 commit comments

Comments
 (0)