Skip to content

Commit 2efc84c

Browse files
author
Richard Jones
committed
fix python 2.3.3 strftime deprecation warning (patch [SF#968398])
1 parent 71936d3 commit 2efc84c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Fixed:
1717
- mailgw handler can close the database on us
1818
- fixed grouping by a NULL Link value
1919
- fixed anydbm import/export (sf bugs 965216, 964457, 964450)
20+
- fix python 2.3.3 strftime deprecation warning (sf patch 968398)
2021

2122

2223
2004-05-28 0.7.3

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.71 2004-06-05 12:04:02 a1s Exp $
18+
# $Id: date.py,v 1.72 2004-06-08 05:37:36 richard Exp $
1919

2020
"""Date, time and time interval handling.
2121
"""
@@ -355,7 +355,7 @@ def pretty(self, format='%d %B %Y'):
355355
format, then the day number will be removed from output.
356356
'''
357357
str = time.strftime(format, (self.year, self.month, self.day,
358-
self.hour, self.minute, self.second, 0, 0, 0))
358+
self.hour, self.minute, int(self.second), 0, 0, 0))
359359
# handle zero day by removing it
360360
if format.startswith('%d') and str[0] == '0':
361361
return ' ' + str[1:]

0 commit comments

Comments
 (0)