Mercurial > hg-stable
changeset 19981:d1e14e7e5b40
check-code: fix an error message
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Sat, 02 Nov 2013 11:25:33 +0100 |
parents | 8179eb28983b |
children | 3e1e4a8aec1e |
files | contrib/check-code.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)\([^)]*\)\.',