Mercurial > hg-stable
changeset 28210:964ad57eff30
hgweb: remove unused argument from graphdata() factory
As graphdata() is wrapped by lambda, there's no reason to pass unused
arguments to it.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 04 Jan 2016 22:55:05 +0900 |
parents | 8ddf893560fa |
children | 446465888119 |
files | mercurial/hgweb/webcommands.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sun Dec 27 17:45:05 2015 +0900 +++ b/mercurial/hgweb/webcommands.py Mon Jan 04 22:55:05 2016 +0900 @@ -1135,7 +1135,7 @@ max([edge[1] for edge in edges] or [0])) return cols - def graphdata(usetuples, **map): + def graphdata(usetuples): data = [] row = 0 @@ -1195,8 +1195,8 @@ canvaswidth=(cols + 1) * bg_height, truecanvasheight=rows * bg_height, canvasheight=canvasheight, bg_height=bg_height, - jsdata=lambda **x: graphdata(True, **x), - nodes=lambda **x: graphdata(False, **x), + jsdata=lambda **x: graphdata(True), + nodes=lambda **x: graphdata(False), node=ctx.hex(), changenav=changenav) def _getdoc(e):