From cd5d765b0ee861509b14a1f21b630b8fb6eb258f Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 9 Sep 2015 01:09:21 +0200 Subject: cleanup datetime code remove scories of round half up code and debug code. --- Lib/datetime.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Lib/datetime.py') diff --git a/Lib/datetime.py b/Lib/datetime.py index 3f29bc4b7a..b734a743d0 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -316,13 +316,6 @@ def _divide_and_round(a, b): return q -def _round_half_up(x): - """Round to nearest with ties going away from zero.""" - if x >= 0.0: - return _math.floor(x + 0.5) - else: - return _math.ceil(x - 0.5) - class timedelta: """Represent the difference between two datetime objects. -- cgit v1.2.1