[PATCH 5 of 5 v2] check-code allow argument passing py2.6ism

timeless timeless at mozdev.org
Mon Oct 19 19:34:56 CDT 2015


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1444944506 14400
#      Thu Oct 15 17:28:26 2015 -0400
# Node ID 5764f11cee4c6b9dcfac0585f4a3ed645ef84404
# Parent  17ed74e8d8ef62ee19bb289b3dc2f0dbb5e321d7
check-code allow argument passing py2.6ism

this backs out 131f7fe06e9e, because Python2.5 support was dropped

diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -199,7 +199,6 @@
 
 pypats = [
   [
-    (r'\([^)]*\*\w[^()]+\w+=', "can't pass varargs with keyword in Py2.5"),
     (r'^\s*def\s*\w+\s*\(.*,\s*\(',
      "tuple parameter unpacking not available in Python 3+"),
     (r'lambda\s*\(.*,.*\)',


More information about the Mercurial-devel mailing list