##// END OF EJS Templates
check-code: check for argument passing py2.6ism
Matt Mackall -
r20796:131f7fe0 default
parent child Browse files
Show More
@@ -191,6 +191,7 b' utestfilters = ['
191
191
192 pypats = [
192 pypats = [
193 [
193 [
194 (r'\([^)]*\*\w[^()]+\w+=', "can't pass varargs with keyword in Py2.5"),
194 (r'^\s*def\s*\w+\s*\(.*,\s*\(',
195 (r'^\s*def\s*\w+\s*\(.*,\s*\(',
195 "tuple parameter unpacking not available in Python 3+"),
196 "tuple parameter unpacking not available in Python 3+"),
196 (r'lambda\s*\(.*,.*\)',
197 (r'lambda\s*\(.*,.*\)',
@@ -103,8 +103,8 b' def _runcatch(req):'
103 if req.repo:
103 if req.repo:
104 # copy configs that were passed on the cmdline (--config) to
104 # copy configs that were passed on the cmdline (--config) to
105 # the repo ui
105 # the repo ui
106 for cfg in cfgs:
106 for sec, name, val in cfgs:
107 req.repo.ui.setconfig(*cfg, source='--config')
107 req.repo.ui.setconfig(sec, name, val, source='--config')
108
108
109 # if we are in HGPLAIN mode, then disable custom debugging
109 # if we are in HGPLAIN mode, then disable custom debugging
110 debugger = ui.config("ui", "debugger")
110 debugger = ui.config("ui", "debugger")
General Comments 0
You need to be logged in to leave comments. Login now