mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	(partparse.py): Small fix to do_datadesc(): in some odd cases the name of
data item was omitted, which also affected the indentation of the description.
This commit is contained in:
		
							parent
							
								
									43e6661d25
								
							
						
					
					
						commit
						11b6d24da0
					
				
					 2 changed files with 8 additions and 8 deletions
				
			
		|  | @ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i): | ||||||
| 	command = 'defcv' | 	command = 'defcv' | ||||||
| 	cat_class = 'data' | 	cat_class = 'data' | ||||||
| 	class_class = string.join(idxsi[2:]) | 	class_class = string.join(idxsi[2:]) | ||||||
| 
 |     else: | ||||||
|     if not command: | 	command = 'defcv' | ||||||
| 	return length, i | 	cat_class = 'data' | ||||||
| 	#raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *) | 	class_class = string.join(idxsi) | ||||||
| 
 | 
 | ||||||
|     ch.chtype = chunk_type[CSLINE] |     ch.chtype = chunk_type[CSLINE] | ||||||
|     ch.data = command |     ch.data = command | ||||||
|  |  | ||||||
|  | @ -1156,10 +1156,10 @@ def do_datadesc(length, buf, pp, i): | ||||||
| 	command = 'defcv' | 	command = 'defcv' | ||||||
| 	cat_class = 'data' | 	cat_class = 'data' | ||||||
| 	class_class = string.join(idxsi[2:]) | 	class_class = string.join(idxsi[2:]) | ||||||
| 
 |     else: | ||||||
|     if not command: | 	command = 'defcv' | ||||||
| 	return length, i | 	cat_class = 'data' | ||||||
| 	#raise error, 'don\'t know what to do with indexsubitem ' + `idxsi` *) | 	class_class = string.join(idxsi) | ||||||
| 
 | 
 | ||||||
|     ch.chtype = chunk_type[CSLINE] |     ch.chtype = chunk_type[CSLINE] | ||||||
|     ch.data = command |     ch.data = command | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fred Drake
						Fred Drake