[Medusa-dev] medusa-0.5.2 errata

Piers Lauder piers@cs.su.oz.au
Thu, 11 Jul 2002 12:12:15 +1000


I've just downloaded the latest version of medusa from
http://oedipus.sourceforge.net/medusa/ and found a problem when using
it with Python2.2 (problem also probably applies to other versions).

Here's the fix, just in case it helps anyone else.

(The diff below is against my previous (fixed) version - medusa-src-20000601.)

time.mktime takes a 9-tuple, not 9 args:

	: gemini medusa ; diff -B -b medusa-src-20000601/logger.py medusa-0.5.2/logger.py
	106c105
	<             return time.mktime((yr,mo,day+1, 0,0,0, 0,0,-1))
	---
	>             return time.mktime(yr,mo,day+1, 0,0,0, 0,0,-1)
	108c107
	<             return time.mktime((yr,mo,day-wd+7, 0,0,0, 0,0,-1))  # wd(monday)==0
	---
	>             return time.mktime(yr,mo,day-wd+7, 0,0,0, 0,0,-1)  # wd(monday)==0
	110c109
	<             return time.mktime((yr,mo+1,1, 0,0,0, 0,0,-1))
	---
	>             return time.mktime(yr,mo+1,1, 0,0,0, 0,0,-1)


________________________________________________________________________________
Schl of Inf Tec, Sydney University, Madsen Bldg F09, Sydney NSW 2006, Australia.
Phone: +61 2 9351 2824   Fax: +61 2 9351 3838   http://www.it.usyd.edu.au/~piers