fixed bug in encode/decode, thanks Jonathan

This commit is contained in:
mdipierro
2013-03-10 11:06:20 -05:00
parent 4f0a16a24c
commit f92d97f36e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.2-stable+timestamp.2013.03.10.11.04.02
Version 2.4.2-stable+timestamp.2013.03.10.11.05.31
+1 -1
View File
@@ -191,7 +191,7 @@ class IS_MATCH(Validator):
def __call__(self, value):
if self.unicode and not isinstance(value,unicode):
match = self.regex.search(str(value).encode('utf8'))
match = self.regex.search(str(value).decode('utf8'))
else:
match = self.regex.search(str(value))
if match is not None: