Source

CherryPy / cherrypy / _cpthreadinglocal.py

The branch 'cherrypy-3.0.x' does not exist.
Diff from to

File cherrypy/_cpthreadinglocal.py

 
     def __new__(cls, *args, **kw):
         self = object.__new__(cls)
-        key = '_local__key', 'thread.local.' + str(id(self))
+        key = 'thread.local.' + str(id(self))
         object.__setattr__(self, '_local__key', key)
         object.__setattr__(self, '_local__args', (args, kw))
         object.__setattr__(self, '_local__lock', RLock())
             raise TypeError("Initialization arguments are not supported")
 
         # We need to create the thread dict in anticipation of
-        # __init__ being called, to make sire we don't cal it
+        # __init__ being called, to make sure we don't call it
         # again ourselves.
         dict = object.__getattribute__(self, '__dict__')
         currentThread().__dict__[key] = dict