Patchwork D6977: contrib: allow trailing commas in lists

login
register
mail settings
Submitter phabricator
Date Oct. 5, 2019, 3:01 p.m.
Message ID <differential-rev-PHID-DREV-kuzrcomxt6t35wqny7da-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41978/
State Superseded
Headers show

Comments

phabricator - Oct. 5, 2019, 3:01 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  black manages this for us, so we don't need to worry about this anymore.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6977

AFFECTED FILES
  contrib/check-code.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -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"),