Edgewall Software

Opened 19 years ago

Last modified 19 years ago

#1003 closed defect

Python 2.1 does not know boolean 'True' — at Version 1

Reported by: anonymous Owned by: Jonas Borgström
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 ''

Change History (1)

comment:1 by Christopher Lenz, 19 years ago

Description: modified (diff)
Milestone: 0.8.1
Version: devel0.8
Note: See TracTickets for help on using tickets.