mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Consistently use hard tabs for indentation.
Slightly de-Fultonize two bits of C layout. No semantic changes.
This commit is contained in:
		
							parent
							
								
									64e0814798
								
							
						
					
					
						commit
						2368b3c41b
					
				
					 1 changed files with 152 additions and 159 deletions
				
			
		|  | @ -175,10 +175,7 @@ local_new(PyTypeObject *type, PyObject *args, PyObject *kw) | |||
| 
 | ||||
| 	if (type->tp_init == PyBaseObject_Type.tp_init | ||||
| 	    && ((args && PyObject_IsTrue(args)) | ||||
|                 || | ||||
|                 (kw && PyObject_IsTrue(kw)) | ||||
|                 ) | ||||
|             ) { | ||||
| 		|| (kw && PyObject_IsTrue(kw)))) { | ||||
| 		PyErr_SetString(PyExc_TypeError, | ||||
| 			  "Initialization arguments are not supported"); | ||||
| 		return NULL; | ||||
|  | @ -246,8 +243,7 @@ local_dealloc(localobject *self) | |||
| 	    && tstate->interp) { | ||||
| 		for(tstate = PyInterpreterState_ThreadHead(tstate->interp); | ||||
| 		    tstate; | ||||
|                     tstate = PyThreadState_Next(tstate) | ||||
|                     )  | ||||
| 		    tstate = PyThreadState_Next(tstate))  | ||||
| 			if (tstate->dict && | ||||
| 			    PyDict_GetItem(tstate->dict, self->key)) | ||||
| 				PyDict_DelItem(tstate->dict, self->key); | ||||
|  | @ -288,8 +284,7 @@ _ldict(localobject *self) | |||
| 
 | ||||
| 		if (self->ob_type->tp_init != PyBaseObject_Type.tp_init && | ||||
| 		    self->ob_type->tp_init((PyObject*)self,  | ||||
|                                            self->args, self->kw) < 0 | ||||
|                     ) { | ||||
| 					   self->args, self->kw) < 0) { | ||||
| 			/* we need to get rid of ldict from thread so
 | ||||
| 			   we create a new one the next time we do an attr | ||||
| 			   acces */ | ||||
|  | @ -355,10 +350,8 @@ local_getdict(localobject *self, void *closure) | |||
| } | ||||
| 
 | ||||
| static PyGetSetDef local_getset[] = { | ||||
|     {"__dict__",  | ||||
|      (getter)local_getdict, (setter)0, | ||||
|      "Local-data dictionary", | ||||
|      NULL}, | ||||
| 	{"__dict__", (getter)local_getdict, (setter)NULL, | ||||
| 	 "Local-data dictionary", NULL}, | ||||
| 	{NULL}  /* Sentinel */ | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael W. Hudson
						Michael W. Hudson