Mercurial > hg > bitsyblog
changeset 132:bda88f101ba9
py3
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 28 Dec 2020 20:49:32 +0000 |
parents | 2d944e8f24e9 |
children | ce478807848e |
files | bitsyblog/user.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitsyblog/user.py Mon Dec 28 19:22:23 2020 +0000 +++ b/bitsyblog/user.py Mon Dec 28 20:49:32 2020 +0000 @@ -161,7 +161,7 @@ pw_file = '.password' # name of the password file on the filesystem password = self.home(user, pw_file) if os.path.exists(password): - return file(password).read().strip() + return open(password).read().strip() return '' # unspecified password def settings(self, name):