diff mercurial/templater.py @ 27066:6f1f8e88f036

util.datestr: use divmod() We were computing the quotient and remainder of a division operation separately. The built-in divmod() function allows us to do this with a single function call. Do that.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 14 Nov 2015 17:30:10 -0800
parents 56b2bcea2529
children 9e06e7fb037d
line wrap: on
line diff