This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, committed] PR 91048 Open ~/.mklog in string mode


Hi,

another leftover from the py3 conversion. Committed r272921 as obvious.

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

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

Index: mklog
===================================================================
--- mklog    (revision 272920)
+++ mklog    (working copy)
@@ -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)


-- 
Janne Blomqvist


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]