From 6d64cee84be39d688a0221246f24bba8e84a54b0 Mon Sep 17 00:00:00 2001 From: Janne Blomqvist Date: Tue, 2 Jul 2019 08:54:31 +0300 Subject: [PATCH] mklog/91048: Open ~/.mklog in string mode. 2019-07-02 Janne Blomqvist PR other/91048 * mklog (read_user_info): Open ~/.mklog in string mode. From-SVN: r272921 --- contrib/ChangeLog | 5 +++++ contrib/mklog | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 56aaec909d0..aff6b13e6a5 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2019-07-02 Janne Blomqvist + + PR other/91048 + * mklog (read_user_info): Open ~/.mklog in string mode. + 2019-06-19 Martin Liska * bench-stringop: New file. diff --git a/contrib/mklog b/contrib/mklog index be1dc3a27fc..15558cfbfe3 100755 --- a/contrib/mklog +++ b/contrib/mklog @@ -100,7 +100,7 @@ EMAIL = ... mklog_conf = os.path.expanduser('~/.mklog') if os.path.exists(mklog_conf): attrs = {} - f = open(mklog_conf, 'rb') + f = open(mklog_conf) for s in f: if cache.match(r'^\s*([a-zA-Z0-9_]+)\s*=\s*(.*?)\s*$', s): attrs[cache.group(1)] = cache.group(2)