comparison contrib/check-code.py @ 31789:0e4f70f63aaa

check-code: fix "covert" typo
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 03 Apr 2017 11:30:51 -0700
parents be8a866a2c44
children 2a865df042b7
comparison
equal deleted inserted replaced
31788:d15c9feb4399 31789:0e4f70f63aaa
336 (r'^import pickle', "don't use pickle, use util.pickle"), 336 (r'^import pickle', "don't use pickle, use util.pickle"),
337 (r'^import httplib', "don't use httplib, use util.httplib"), 337 (r'^import httplib', "don't use httplib, use util.httplib"),
338 (r'^import BaseHTTPServer', "use util.httpserver instead"), 338 (r'^import BaseHTTPServer', "use util.httpserver instead"),
339 (r'\.next\(\)', "don't use .next(), use next(...)"), 339 (r'\.next\(\)', "don't use .next(), use next(...)"),
340 (r'([a-z]*).revision\(\1\.node\(', 340 (r'([a-z]*).revision\(\1\.node\(',
341 "don't covert rev to node before passing to revision(nodeorrev)"), 341 "don't convert rev to node before passing to revision(nodeorrev)"),
342 342
343 # rules depending on implementation of repquote() 343 # rules depending on implementation of repquote()
344 (r' x+[xpqo%APM][\'"]\n\s+[\'"]x', 344 (r' x+[xpqo%APM][\'"]\n\s+[\'"]x',
345 'string join across lines with no space'), 345 'string join across lines with no space'),
346 (r'''(?x)ui\.(status|progress|write|note|warn)\( 346 (r'''(?x)ui\.(status|progress|write|note|warn)\(