# HG changeset patch # User Augie Fackler # Date 1570286848 14400 # Node ID b61324854e93df03d1b61a7e3a25eb789cd18933 # Parent 63e25ae9cdce74bca94eb01b6b692c4cfdfac255 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 diff -r 63e25ae9cdce -r b61324854e93 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"),