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

Changeset 1479

Show
Ignore:
Timestamp:
12/08/06 13:46:54
Author:
fumanchu
Message:

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
  • trunk/cherrypy/_cpthreadinglocal.py

    r762 r1479  
    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