Skip to content

Commit 64b7c46

Browse files
author
Ralf Schlatterbeck
committed
fix a deprecation warning if usecs passed to datetime constructor is a float.
1 parent f1770aa commit 64b7c46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/date.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: date.py,v 1.90 2007-03-09 10:25:09 schlatterbeck Exp $
18+
# $Id: date.py,v 1.91 2007-03-09 14:54:39 schlatterbeck Exp $
1919

2020
"""Date, time and time interval handling.
2121
"""
@@ -498,7 +498,7 @@ def pretty(self, format='%d %B %Y'):
498498
'''
499499
dt = datetime.datetime(self.year, self.month, self.day, self.hour,
500500
self.minute, int(self.second),
501-
(self.second - int (self.second)) * 1000000.)
501+
int ((self.second - int (self.second)) * 1000000.))
502502
str = dt.strftime(format)
503503

504504
# handle zero day by removing it

0 commit comments

Comments
 (0)