Edgewall Software
Modify

Ticket #1003 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Python 2.1 does not know boolean 'True'

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

Description (last modified by cmlenz) (diff)

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

Change History

comment:1 Changed 7 years ago by cmlenz

  • Description modified (diff)
  • Milestone set to 0.8.1
  • Version changed from devel to 0.8

comment:2 Changed 7 years ago by cboos@…

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 Changed 7 years ago by Matthew Good <matt-good.net>

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

  • Owner changed from jonas to cmlenz
  • Status changed from new to assigned

comment:5 Changed 7 years ago by cmlenz

  • Component changed from general to wiki
  • Resolution set to fixed
  • Status changed from assigned to closed

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cmlenz. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.