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
--- 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"),