Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 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

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by ramiro

  • Keywords blocker added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by ramiro

  • Resolution set to fixed
  • Status changed from new to closed

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 3 years ago by ramiro

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 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.