mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 08:33:22 +03:00
Fix password usage under Python 3 due to commit 40d05a7
This commit is contained in:
parent
be16b9992b
commit
bfa2d913b9
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user