changeset 29217:2f9ad6ca19c2

check-code: reject .next(...)
author timeless <timeless@mozdev.org>
date Mon, 16 May 2016 21:18:59 +0000
parents ead25aa27a43
children fd288d118074
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Mon May 16 21:30:53 2016 +0000
+++ b/contrib/check-code.py	Mon May 16 21:18:59 2016 +0000
@@ -328,6 +328,7 @@
     (r'^import Queue', "don't use Queue, use util.queue + util.empty"),
     (r'^import cStringIO', "don't use cStringIO.StringIO, use util.stringio"),
     (r'^import urllib', "don't use urllib, use util.urlreq/util.urlerr"),
+    (r'\.next\(\)', "don't use .next(), use next(...)"),
   ],
   # warnings
   [