On 31/03/2013 22:21, Chris Angelico wrote:
sue = time.mktime(
(int(m.group(7)), int(months[m.group(2)]), int(m.group(3)),
int(m.group(4)), int(m.group(5)), int(m.group(6)),
int(days[m.group(1)]), 0, 0)
)
expire_time = (sue  current_time)/60/60/24
Here's a likely problem. There's supposed to be an operator - probably
a plus sign - between sue and current_time.
There is actually a minus sign there which showed up when I pasted the
code into the Eclipse/Pydev editor. That sadly doesn't fix the problem
with the call to mktime, 12 open round brackets to 14 close if I've
counted correctly.
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list