Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#15543 closed (fixed)

SyntaxError in utils/http.py on Python 2.4

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: dev
Severity: Keywords: blocker
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

od_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch

log=debug)

File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 464, in import_module

module = imp.load_module(mname, f, p, d)

File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 6, in ?

from django import http

File "/usr/lib/python2.4/site-packages/django/http/init.py", line 122, in ?

from django.utils.http import cookie_date

File "/usr/lib/python2.4/site-packages/django/utils/http.py", line 108

year += 2000 if year < 70 else 1900


SyntaxError: invalid syntax

Change History (4)

comment:1 by Ramiro Morales, 14 years ago

Keywords: blocker added
Triage Stage: UnreviewedAccepted

comment:2 by Ramiro Morales, 14 years ago

Resolution: fixed
Status: newclosed

In [15731]:

Fixed #15543 -- Tweaked change from r15696 to not use 'if' syntax introduce in Python 2.5. Thanks to an anonymous reporter for the heads up.

comment:3 by Ramiro Morales, 14 years ago

In [15732]:

[1.2.X] Fixed #15543 -- Tweaked change from r15696 to not use 'if' syntax introduce in Python 2.5. Thanks to an anonymous reporter for the heads up.

Backport of [15731] from trunk

comment:4 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top