##// END OF EJS Templates
check-code: fix an error message
Simon Heimberg -
r19981:d1e14e7e default
parent child Browse files
Show More
@@ -247,7 +247,7 b' pypats = ['
247 (r'[\s\(](open|file)\([^)]*\)\.read\(',
247 (r'[\s\(](open|file)\([^)]*\)\.read\(',
248 "use util.readfile() instead"),
248 "use util.readfile() instead"),
249 (r'[\s\(](open|file)\([^)]*\)\.write\(',
249 (r'[\s\(](open|file)\([^)]*\)\.write\(',
250 "use util.readfile() instead"),
250 "use util.writefile() instead"),
251 (r'^[\s\(]*(open(er)?|file)\([^)]*\)',
251 (r'^[\s\(]*(open(er)?|file)\([^)]*\)',
252 "always assign an opened file to a variable, and close it afterwards"),
252 "always assign an opened file to a variable, and close it afterwards"),
253 (r'[\s\(](open|file)\([^)]*\)\.',
253 (r'[\s\(](open|file)\([^)]*\)\.',
General Comments 0
You need to be logged in to leave comments. Login now