summaryrefslogtreecommitdiff
path: root/Lib/datetime.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r--Lib/datetime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py
index 3c25ef84c6..3f29bc4b7a 100644
--- a/Lib/datetime.py
+++ b/Lib/datetime.py
@@ -1380,7 +1380,7 @@ class datetime(date):
A timezone info object may be passed in as well.
"""
frac, t = _math.modf(t)
- us = _round_half_up(frac * 1e6)
+ us = round(frac * 1e6)
if us >= 1000000:
t += 1
us -= 1000000