Commit c3959878 authored by Ken Manheimer's avatar Ken Manheimer

.__init__(): An error message was causing a format-string mismatch

exception - i put the format args within a tuple, so they must match
format string plurality.
parent 82ff7063
......@@ -84,7 +84,7 @@
##############################################################################
"""Encapsulation of date/time values"""
__version__='$Revision: 1.32 $'[11:-2]
__version__='$Revision: 1.33 $'[11:-2]
import sys, os, math, regex, DateTimeZone
......@@ -608,7 +608,7 @@ class DateTime:
hr,mn,sc,tz=0,0,0,0
yr=(yr>100) and yr or yr+CENTURY
if not self._validDate(yr,mo,dy):
raise self.DateTimeError, 'Invalid date: %s' % args
raise self.DateTimeError, 'Invalid date: %s' % (args,)
args=args[3:]
if args:
hr,args=args[0],args[1:]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment