changeset 43061:b61324854e93

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
author Augie Fackler <augie@google.com>
date Sat, 05 Oct 2019 10:47:28 -0400
parents 63e25ae9cdce
children 28002d25eb54
files contrib/check-code.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"),