Changeset 391 for python/trunk/Lib/_threading_local.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/_threading_local.py
r2 r391 156 156 object.__setattr__(self, '_local__lock', RLock()) 157 157 158 if args or kwand (cls.__init__ is object.__init__):158 if (args or kw) and (cls.__init__ is object.__init__): 159 159 raise TypeError("Initialization arguments are not supported") 160 160 … … 196 196 197 197 def __setattr__(self, name, value): 198 if name == '__dict__': 199 raise AttributeError( 200 "%r object attribute '__dict__' is read-only" 201 % self.__class__.__name__) 198 202 lock = object.__getattribute__(self, '_local__lock') 199 203 lock.acquire() … … 205 209 206 210 def __delattr__(self, name): 211 if name == '__dict__': 212 raise AttributeError( 213 "%r object attribute '__dict__' is read-only" 214 % self.__class__.__name__) 207 215 lock = object.__getattribute__(self, '_local__lock') 208 216 lock.acquire()
Note:
See TracChangeset
for help on using the changeset viewer.