Commit 6d64cee8 by Janne Blomqvist

mklog/91048: Open ~/.mklog in string mode.

2019-07-02  Janne Blomqvist  <jb@gcc.gnu.org>

	PR other/91048
	* mklog (read_user_info): Open ~/.mklog in string mode.

From-SVN: r272921
parent 758d7478
2019-07-02 Janne Blomqvist <jb@gcc.gnu.org>
PR other/91048
* mklog (read_user_info): Open ~/.mklog in string mode.
2019-06-19 Martin Liska <mliska@suse.cz> 2019-06-19 Martin Liska <mliska@suse.cz>
* bench-stringop: New file. * bench-stringop: New file.
......
...@@ -100,7 +100,7 @@ EMAIL = ... ...@@ -100,7 +100,7 @@ EMAIL = ...
mklog_conf = os.path.expanduser('~/.mklog') mklog_conf = os.path.expanduser('~/.mklog')
if os.path.exists(mklog_conf): if os.path.exists(mklog_conf):
attrs = {} attrs = {}
f = open(mklog_conf, 'rb') f = open(mklog_conf)
for s in f: for s in f:
if cache.match(r'^\s*([a-zA-Z0-9_]+)\s*=\s*(.*?)\s*$', s): if cache.match(r'^\s*([a-zA-Z0-9_]+)\s*=\s*(.*?)\s*$', s):
attrs[cache.group(1)] = cache.group(2) attrs[cache.group(1)] = cache.group(2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment