This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alanmcintyre
Recipients alanmcintyre, gradha
Date 2007-12-23.21:26:55
SpamBayes Score 0.11675029
Marked as misclassified No
Message-id <1198445216.85.0.0468124468589.issue1760357@psf.upfronthosting.co.za>
In-reply-to
Content
At the moment I don't have a Windows machine available, but on my Mac,
time.localtime doesn't seem to mind interpreting negative input values.
 So I doubt that forcing timestamps to be non-negative is the way to fix
this. 

I poked around a bit in the current 2.6 source, and it seems to me that
in this case the Windows XP localtime function doesn't like a timestamp
value that was generated by the same platform's stat function.  It seems
like raising a ValueError is the correct thing for the time module to
do, since it relies on the platform to do the conversions; what should
zipfile.writestr do?  I don't like the idea of silently using some dummy
timestamp if the conversion of os.stat results fails, and I can't think
of an alternative at the moment.
History
Date User Action Args
2007-12-23 21:26:57alanmcintyresetspambayes_score: 0.11675 -> 0.11675029
recipients: + alanmcintyre, gradha
2007-12-23 21:26:56alanmcintyresetspambayes_score: 0.11675 -> 0.11675
messageid: <1198445216.85.0.0468124468589.issue1760357@psf.upfronthosting.co.za>
2007-12-23 21:26:56alanmcintyrelinkissue1760357 messages
2007-12-23 21:26:56alanmcintyrecreate