Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#15543 closed (fixed)

SyntaxError in utils/http.py on Python 2.4

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

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 Changed 6 years ago by Ramiro Morales

Keywords: blocker added
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by Ramiro Morales

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 Changed 6 years ago by Ramiro Morales

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 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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