comparison hgweb.cgi @ 28344:ac371d4c007f

templater: drop redundant type conversion when evaluating integer argument A function argument may be an integer. In this case, it isn't necessary to convert a value to string and back to integer. Because an argument may be an arbitrary object (e.g. date tuple), TypeError should be caught as well.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 14 Feb 2016 12:48:14 +0900
parents 4b0fc75f9403
children 47ef023d0165
comparison
equal deleted inserted replaced
28343:a6c2310b3827 28344:ac371d4c007f