Edgewall Software
Modify

Opened 21 years ago

Closed 21 years ago

#265 closed defect (fixed)

Errors with ltrim and utrim

Reported by: jon@… 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 daniel, 21 years ago

Milestone: 0.7

comment:2 by Jonas Borgström, 21 years ago

Resolution: fixed
Status: newclosed

More python2.1 issues.

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.