SVN: r24121 - trunk/quixote
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Tue, 4 May 2004 11:37:21 -0400
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: nascheme
Date: 2004-05-04 11:36:52 -0400 (Tue, 04 May 2004)
New Revision: 24121
Modified:
trunk/quixote/http_response.py
Log:
Make code future division proof.
Modified: trunk/quixote/http_response.py
===================================================================
--- trunk/quixote/http_response.py 2004-05-04 15:29:25 UTC (rev 24120)
+++ trunk/quixote/http_response.py 2004-05-04 15:36:52 UTC (rev 24121)
@@ -158,7 +158,7 @@
else:
# Eg. for generic 4xx failures, use the reason
# associated with status 400.
- reason = status_reasons[(status / 100) * 100]
+ reason = status_reasons[status - (status % 100)]
else:
reason = str(reason)