Modify ↓
#10324 closed defect (fixed)
trac-mercurial - python 2.4 compatibility
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | plugin - mercurial |
Component: | plugin/mercurial | Version: | 0.12dev |
Severity: | minor | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
A package build for CentOs-5 with its Python 2.4 revealed that a single line in Trac-Mercurial uses the expression if-else that is not compatible. In this case it can be replaced by some and-or expression.
--- tracext/hg/hooks.py.orig 2011-08-20 00:00:01.000000000 +0200 +++ tracext/hg/hooks.py 2011-08-20 00:00:40.000000000 +0200 @@ -104 +104 @@ - revs_per_call = 160 if os.name == 'nt' else 1000 + revs_per_call = (os.name == 'nt' and 160 or 1000)
Attachments (0)
Change History (3)
comment:1 by , 13 years ago
Milestone: | 0.12.3 → plugin - mercurial |
---|---|
Owner: | set to |
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch applied in [10784]. Thanks!
comment:3 by , 13 years ago
Owner: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
Yes, that was my fault. Good catch!