Small fix for python 2.x
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user