Mercurial > hg
diff mercurial/keepalive.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 | 328739ea70c3 |
children | a16489f9132d |