Patchwork D6977: contrib: allow trailing commas in lists

login
register
mail settings
Submitter phabricator
Date Oct. 6, 2019, 1:55 p.m.
Message ID <fb563f5768002a7efd8e3479092a9e9f@localhost.localdomain>
Download mbox | patch
Permalink /patch/42006/
State Not Applicable
Headers show

Comments

phabricator - Oct. 6, 2019, 1:55 p.m.
Closed by commit rHGb61324854e93: contrib: allow trailing commas in lists (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6977?vs=16826&id=16872

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6977/new/

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

AFFECTED FILES
  contrib/check-code.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
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"),