author | Rémi Cardona <remi.cardona@logilab.fr> |
Tue, 15 Sep 2015 18:21:33 +0200 | |
changeset 10680 | 1b4df4b3cd9a |
parent 10679 | 76bb963c7e8e |
child 10681 | 4383f5a30504 |
__init__.py | file | annotate | diff | comparison | revisions |
--- a/__init__.py Tue Sep 15 17:32:30 2015 +0200 +++ b/__init__.py Tue Sep 15 18:21:33 2015 +0200 @@ -149,13 +149,13 @@ def check_password(eschema, value): - return isinstance(value, (str, Binary)) + return isinstance(value, (binary_type, Binary)) BASE_CHECKERS['Password'] = check_password def str_or_binary(value): if isinstance(value, Binary): return value - return str(value) + return binary_type(value) BASE_CONVERTERS['Password'] = str_or_binary