changeset 19981 | d1e14e7e5b40 |
parent 19873 | b3de50b0c7aa |
child 19982 | 3e1e4a8aec1e |
--- a/contrib/check-code.py Thu Oct 03 23:16:07 2013 +0900 +++ b/contrib/check-code.py Sat Nov 02 11:25:33 2013 +0100 @@ -247,7 +247,7 @@ (r'[\s\(](open|file)\([^)]*\)\.read\(', "use util.readfile() instead"), (r'[\s\(](open|file)\([^)]*\)\.write\(', - "use util.readfile() instead"), + "use util.writefile() instead"), (r'^[\s\(]*(open(er)?|file)\([^)]*\)', "always assign an opened file to a variable, and close it afterwards"), (r'[\s\(](open|file)\([^)]*\)\.',