Fixed mark default in InvalidValueError to be (0, 0) instead of (1, 1)

This commit is contained in:
Maxim Kulkin 2013-09-19 16:10:06 +04:00
parent 5aeee0fd69
commit b2829f3a92

View File

@ -170,7 +170,7 @@ class SchemaError(Issue):
super(SchemaError, self).__init__(Issue.ERROR, message)
class InvalidValueError(MarkedIssue):
def __init__(self, message, mark=Mark('', 1, 1)):
def __init__(self, message, mark=Mark('', 0, 0)):
super(InvalidValueError, self).__init__(Issue.ERROR, 'Invalid value: '+message, mark)
class TypeValidator(object):