Skip to content

Commit 414e73c

Browse files
author
Alexander Smishlajev
committed
fix error message formatting in Date.__init__;
fix vim modeline
1 parent 9cd0e0f commit 414e73c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/date.py

Lines changed: 3 additions & 3 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.77.2.2 2005-02-14 01:26:14 richard Exp $
18+
# $Id: date.py,v 1.77.2.3 2005-02-25 17:20:42 a1s Exp $
1919

2020
"""Date, time and time interval handling.
2121
"""
@@ -150,7 +150,7 @@ def __init__(self, spec='.', offset=0, add_granularity=0, translator=i18n):
150150
# we lost the fractional part
151151
self.second = self.second + frac
152152
except:
153-
raise ValueError, 'Unknown spec %r'%spec
153+
raise ValueError, 'Unknown spec %r' % (spec,)
154154

155155
def set(self, spec, offset=0, date_re=re.compile(r'''
156156
((?P<y>\d\d\d\d)([/-](?P<m>\d\d?)([/-](?P<d>\d\d?))?)? # yyyy[-mm[-dd]]
@@ -939,4 +939,4 @@ def test():
939939
if __name__ == '__main__':
940940
test()
941941

942-
# vim: set filetype=python ts=4 sw=4 et si
942+
# vim: set filetype=python sts=4 sw=4 et si :

0 commit comments

Comments
 (0)