contrib: allow trailing commas in lists
authorAugie Fackler <augie@google.com>
Sat, 05 Oct 2019 10:47:28 -0400
changeset 43061 b61324854e93
parent 43060 63e25ae9cdce
child 43062 28002d25eb54
contrib: allow trailing commas in lists black manages this for us, so we don't need to worry about this anymore. Differential Revision: https://phab.mercurial-scm.org/D6977
contrib/check-code.py
--- a/contrib/check-code.py	Sat Oct 05 10:46:46 2019 -0400
+++ b/contrib/check-code.py	Sat Oct 05 10:47:28 2019 -0400
@@ -280,7 +280,6 @@
     (r'\b(%s)\(' % '|'.join(k for k in keyword.kwlist
                             if k not in ('print', 'exec')),
      "Python keyword is not a function"),
-    (r',]', "unneeded trailing ',' in list"),
 #    (r'class\s[A-Z][^\(]*\((?!Exception)',
 #     "don't capitalize non-exception classes"),
 #    (r'in range\(', "use xrange"),