Small fix for python 2.x

This commit is contained in:
Ryan Leckey
2013-11-21 05:11:49 -08:00
parent af2e98bea7
commit 05ed87459e

View File

@@ -62,7 +62,7 @@ class Password(Mutable, object):
self.hash = new self.hash = new
# The hash should be bytes. # 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.hash = self.hash.encode('utf8')
self.changed() self.changed()