Modify ↓
Opened 22 years ago
Closed 22 years ago
#265 closed defect (fixed)
Errors with ltrim and utrim
| Reported by: | Owned by: | Jonas Borgström | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.7 |
| Component: | general | Version: | devel |
| Severity: | critical | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Running 0.7-pre on Python 2.1 I get the following backtrace (and just the plain text backtrace, not the usual "there was an error" page).
strip() takes exactly 0 arguments (1 given)
Traceback (most recent call last):
File "/usr/lib/python2.1/site-packages/trac/core.py", line 424, in cgi_start
real_cgi_start()
File "/usr/lib/python2.1/site-packages/trac/core.py", line 414, in real_cgi_start
module.run()
File "/usr/lib/python2.1/site-packages/trac/Module.py", line 27, in run
core.populate_hdf(self.req.hdf, self.env, self.db, self.href, self.req)
File "/usr/lib/python2.1/site-packages/trac/core.py", line 195, in populate_hdf
hdf.setValue('trac.href.wiki', href.wiki())
File "/usr/lib/python2.1/site-packages/trac/Href.py", line 82, in wiki
return href_join(self.base, 'wiki/')
File "/usr/lib/python2.1/site-packages/trac/util.py", line 84, in href_join
u1 = u1.rstrip('/') + '/' + u2.lstrip('/')
TypeError: strip() takes exactly 0 arguments (1 given)
Attachments (0)
Change History (2)
comment:1 by , 22 years ago
| Milestone: | → 0.7 |
|---|
comment:2 by , 22 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



More python2.1 issues.
Fixed in [430], I implemented simple lstrip/rstrip functions that work the same way as in python ≥ python2.2.