# HG changeset patch # User Simon Heimberg # Date 1383387933 -3600 # Node ID d1e14e7e5b40afefd6a65d477a6b52dfaea2eeed # Parent 8179eb28983b398b100e0679d0e6d5f89f0796e7 check-code: fix an error message diff -r 8179eb28983b -r d1e14e7e5b40 contrib/check-code.py --- 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)\([^)]*\)\.',