From 05ed87459e96ffde3b706d583e3fe77da14ac615 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Thu, 21 Nov 2013 05:11:49 -0800 Subject: [PATCH] Small fix for python 2.x --- sqlalchemy_utils/types/password.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlalchemy_utils/types/password.py b/sqlalchemy_utils/types/password.py index c943535..3b097b9 100644 --- a/sqlalchemy_utils/types/password.py +++ b/sqlalchemy_utils/types/password.py @@ -62,7 +62,7 @@ class Password(Mutable, object): self.hash = new # The hash should be bytes. - if isinstance(self.hash, six.text_type): + if isinstance(self.hash, six.string_types): self.hash = self.hash.encode('utf8') self.changed()