contrib/check-code.py
changeset 34642 a679aa582d8d
parent 34573 3e4b7861c1c5
child 34648 4889b84b15f2
--- a/contrib/check-code.py	Wed Oct 11 17:42:35 2017 -0700
+++ b/contrib/check-code.py	Wed Oct 11 17:42:57 2017 -0700
@@ -362,6 +362,7 @@
     (r'\.next\(\)', "don't use .next(), use next(...)"),
     (r'([a-z]*).revision\(\1\.node\(',
      "don't convert rev to node before passing to revision(nodeorrev)"),
+    (r'platform\.system\(\)', "don't use platform.system(), use pycompat"),
 
     # rules depending on implementation of repquote()
     (r' x+[xpqo%APM][\'"]\n\s+[\'"]x',