Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

#1003 closed defect (fixed)

Python 2.1 does not know boolean 'True'

Reported by: anonymous Owned by: Christopher Lenz
Priority: normal Milestone: 0.8.1
Component: wiki system Version: 0.8
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christopher Lenz)

I'm trying to use on debian stable with Python 2.1 and apache2 from backport. Because of Python 2.1 does not have boolean keyword 'True', so we need this fix if support Python 2.1.

Index: WikiFormatter.py
===================================================================
--- WikiFormatter.py    (revision 1106)
+++ WikiFormatter.py    (working copy)
@@ -378,7 +378,7 @@
         depth = int((len(fullmatch.group('idepth')) + 1) / 2)
         list_depth = len(self._list_stack)
         if list_depth > 0 and depth == list_depth + 1:
-            self.in_list_item = True
+            self.in_list_item = 1
         else:
             self.open_indentation(depth)
         return ''

Attachments (0)

Change History (5)

comment:1 by Christopher Lenz, 20 years ago

Description: modified (diff)
Milestone: 0.8.1
Version: devel0.8

comment:2 by cboos@…, 20 years ago

With Python-2.4's release a matter of hours now, wouldn't it be possible to set the minimum required version of Python for Trac to be 2.3 ?

comment:3 by Matthew Good <matt-good.net>, 20 years ago

No, the reason for the minimum version is based on Debian stable. Once Sarge gets released the minimum version will probably be increased.

comment:4 by Christopher Lenz, 20 years ago

Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

comment:5 by Christopher Lenz, 20 years ago

Component: generalwiki
Resolution: fixed
Status: assignedclosed

Fixed in [1115] (and [1116] for the 0.8 branch).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.