Modify ↓
Ticket #265 (closed defect: fixed)
Opened 8 years ago
Last modified 8 years ago
Errors with ltrim and utrim
| Reported by: | jon@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.7 |
| Component: | general | Version: | devel |
| Severity: | critical | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API 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
Change History
comment:1 Changed 8 years ago by daniel
- Milestone set to 0.7
comment:2 Changed 8 years ago by jonas
- Resolution set to fixed
- Status changed from new to 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.