Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#1394 closed defect (fixed)

svn_fs.py failed with TypeError(__init__() should return None)

Reported by: Topia <topia@…> Owned by: Jonas Borgström
Priority: normal Milestone: 0.8.2
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

repository sync fails with oops. such as:

  File ".../python/lib/python2.5/site-packages/trac/versioncontrol/svn_fs.py", line 118, in __init__
    self.pool = Pool(self, None)
TypeError: __init__() should return None

fixed with:

  • trac/versioncontrol/svn_fs.py

     
    7676        except TypeError:
    7777            self.close()
    7878            raise
    79 
    80         return self
    8179
    8280    def __call__(self):
    8381        return self.pool

Attachments (0)

Change History (3)

comment:1 by Mark Rowe, 20 years ago

Resolution: fixed
Status: newclosed

Fixed in [1481]. Thanks for picking this up.

comment:2 by cui_y_x@…, 18 years ago

hey buddy.reason is your class init method has return a result.so don't write result in init method.

comment:3 by Christian Boos, 18 years ago

Milestone: 0.8.2

I guess the above comment was a test… please don't abuse this system as a test system.

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.