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 )
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 , 20 years ago
Description: | modified (diff) |
---|---|
Milestone: | → 0.8.1 |
Version: | devel → 0.8 |
comment:2 by , 20 years ago
comment:3 by , 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 , 20 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:5 by , 20 years ago
Component: | general → wiki |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Fixed in [1115] (and [1116] for the 0.8 branch).
Note:
See TracTickets
for help on using tickets.
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 ?