mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +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 | 	if (type->tp_init == PyBaseObject_Type.tp_init | ||||||
| 	    && ((args && PyObject_IsTrue(args)) | 	    && ((args && PyObject_IsTrue(args)) | ||||||
|                 || | 		|| (kw && PyObject_IsTrue(kw)))) { | ||||||
|                 (kw && PyObject_IsTrue(kw)) |  | ||||||
|                 ) |  | ||||||
|             ) { |  | ||||||
| 		PyErr_SetString(PyExc_TypeError, | 		PyErr_SetString(PyExc_TypeError, | ||||||
| 			  "Initialization arguments are not supported"); | 			  "Initialization arguments are not supported"); | ||||||
| 		return NULL; | 		return NULL; | ||||||
|  | @ -246,8 +243,7 @@ local_dealloc(localobject *self) | ||||||
| 	    && tstate->interp) { | 	    && tstate->interp) { | ||||||
| 		for(tstate = PyInterpreterState_ThreadHead(tstate->interp); | 		for(tstate = PyInterpreterState_ThreadHead(tstate->interp); | ||||||
| 		    tstate; | 		    tstate; | ||||||
|                     tstate = PyThreadState_Next(tstate) | 		    tstate = PyThreadState_Next(tstate))  | ||||||
|                     )  |  | ||||||
| 			if (tstate->dict && | 			if (tstate->dict && | ||||||
| 			    PyDict_GetItem(tstate->dict, self->key)) | 			    PyDict_GetItem(tstate->dict, self->key)) | ||||||
| 				PyDict_DelItem(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 && | 		if (self->ob_type->tp_init != PyBaseObject_Type.tp_init && | ||||||
| 		    self->ob_type->tp_init((PyObject*)self,  | 		    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 need to get rid of ldict from thread so
 | ||||||
| 			   we create a new one the next time we do an attr | 			   we create a new one the next time we do an attr | ||||||
| 			   acces */ | 			   acces */ | ||||||
|  | @ -355,10 +350,8 @@ local_getdict(localobject *self, void *closure) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static PyGetSetDef local_getset[] = { | static PyGetSetDef local_getset[] = { | ||||||
|     {"__dict__",  | 	{"__dict__", (getter)local_getdict, (setter)NULL, | ||||||
|      (getter)local_getdict, (setter)0, | 	 "Local-data dictionary", NULL}, | ||||||
|      "Local-data dictionary", |  | ||||||
|      NULL}, |  | ||||||
| 	{NULL}  /* Sentinel */ | 	{NULL}  /* Sentinel */ | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael W. Hudson
						Michael W. Hudson