Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1526

Show
Ignore:
Timestamp:
12/11/06 17:12:07
Author:
fumanchu
Message:

2.x backport of [1479] (Fix for thread locals on Jython; see http://groups.google.com/group/cherrypy-users/browse_frm/thread/ccbad8001cdc0146 and also http://article.gmane.org/gmane.comp.lang.jython.devel/2601 and its responses).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/_cpthreadinglocal.py

    r762 r1526  
    143143    def __new__(cls, *args, **kw): 
    144144        self = object.__new__(cls) 
    145         key = '_local__key', 'thread.local.' + str(id(self)) 
     145        key = 'thread.local.' + str(id(self)) 
    146146        object.__setattr__(self, '_local__key', key) 
    147147        object.__setattr__(self, '_local__args', (args, kw)) 

Hosted by WebFaction

Log in as guest/cpguest to create tickets