contrib/check-code.py
changeset 41761 e2472b12c842
parent 41544 7d1798ec92a3
child 41821 14e8d042993a
equal deleted inserted replaced
41760:1eb2fc21da12 41761:e2472b12c842
   231     (r"( +)(#([^!][^\n]*\S)?)", repcomment),
   231     (r"( +)(#([^!][^\n]*\S)?)", repcomment),
   232 ]
   232 ]
   233 
   233 
   234 pypats = [
   234 pypats = [
   235   [
   235   [
       
   236     (r'\\$', 'Use () to wrap long lines in Python, not \\'),
   236     (r'^\s*def\s*\w+\s*\(.*,\s*\(',
   237     (r'^\s*def\s*\w+\s*\(.*,\s*\(',
   237      "tuple parameter unpacking not available in Python 3+"),
   238      "tuple parameter unpacking not available in Python 3+"),
   238     (r'lambda\s*\(.*,.*\)',
   239     (r'lambda\s*\(.*,.*\)',
   239      "tuple parameter unpacking not available in Python 3+"),
   240      "tuple parameter unpacking not available in Python 3+"),
   240     (r'(?<!def)\s+(cmp)\(', "cmp is not available in Python 3+"),
   241     (r'(?<!def)\s+(cmp)\(', "cmp is not available in Python 3+"),