pep8 and make travis run again
This commit is contained in:
1 parent
9a3e73031b
commit
d746d43be5
1 file changed
+5
-1
+5
-1
@@ -459,7 +459,7 @@ class IS_IN_SET(Validator):
|
|||||||
|
|
||||||
def __call__(self, value):
|
def __call__(self, value):
|
||||||
if self.multiple:
|
if self.multiple:
|
||||||
### if below was values = re.compile("[\w\-:]+").findall(str(value))
|
# if below was values = re.compile("[\w\-:]+").findall(str(value))
|
||||||
if not value:
|
if not value:
|
||||||
values = []
|
values = []
|
||||||
elif isinstance(value, (tuple, list)):
|
elif isinstance(value, (tuple, list)):
|
||||||
@@ -2347,6 +2347,7 @@ class IS_DATE_IN_RANGE(IS_DATE):
|
|||||||
(datetime.date(2010, 3, 3), 'oops')
|
(datetime.date(2010, 3, 3), 'oops')
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
minimum=None,
|
minimum=None,
|
||||||
maximum=None,
|
maximum=None,
|
||||||
@@ -2400,6 +2401,7 @@ class IS_DATETIME_IN_RANGE(IS_DATETIME):
|
|||||||
(datetime.datetime(2010, 3, 3, 0, 0), 'oops')
|
(datetime.datetime(2010, 3, 3, 0, 0), 'oops')
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
minimum=None,
|
minimum=None,
|
||||||
maximum=None,
|
maximum=None,
|
||||||
@@ -2705,6 +2707,7 @@ class LazyCrypt(object):
|
|||||||
"""
|
"""
|
||||||
Stores a lazy password hash
|
Stores a lazy password hash
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, crypt, password):
|
def __init__(self, crypt, password):
|
||||||
"""
|
"""
|
||||||
crypt is an instance of the CRYPT validator,
|
crypt is an instance of the CRYPT validator,
|
||||||
@@ -3695,6 +3698,7 @@ class IS_IPADDRESS(Validator):
|
|||||||
>>> IS_IPADDRESS(subnets='invalidsubnet')('2001::8ffa:fe22:b3af')
|
>>> IS_IPADDRESS(subnets='invalidsubnet')('2001::8ffa:fe22:b3af')
|
||||||
('2001::8ffa:fe22:b3af', 'invalid subnet provided')
|
('2001::8ffa:fe22:b3af', 'invalid subnet provided')
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
minip='0.0.0.0',
|
minip='0.0.0.0',
|
||||||
|
|||||||
Reference in new issue
Block a user