Fix password usage under Python 3 due to commit 40d05a7

This commit is contained in:
Alessio Sergi 2016-03-12 00:36:05 +01:00
parent be16b9992b
commit bfa2d913b9

View File

@ -142,7 +142,7 @@ class GlancesPassword(object):
# Create/overwrite the password file
with open(self.password_filepath, 'wb') as file_pwd:
file_pwd.write(hashed_password)
file_pwd.write(b(hashed_password))
def load_password(self):
"""Load the hashed password from the Glances folder."""