]> arthur.barton.de Git - bup.git/commit
helpers.localtime: avoid floor-related deprecation warning
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 26 May 2020 22:34:54 +0000 (00:34 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sun, 13 Sep 2020 17:49:25 +0000 (12:49 -0500)
commit40aa3f4c36bc2a5730de5277050fa4616f3cefb4
tree40aef597ddc3b0034f703e701390ee0e2c090fe6
parentcd3647c81a25e9a512710040fb70d080656266e6
helpers.localtime: avoid floor-related deprecation warning

floor() returns a float, even though it just rounded down,
so we need to convert to an int() to avoid a deprecation
warning here.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/helpers.py