mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
test for parts > 3 when we use .split(..., 2).
This commit is contained in:
		
							parent
							
								
									373d90b365
								
							
						
					
					
						commit
						1e3c3b15df
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		|  | @ -235,10 +235,6 @@ def decode_rfc2231(s): | ||||||
|     parts = s.split(TICK, 2) |     parts = s.split(TICK, 2) | ||||||
|     if len(parts) <= 2: |     if len(parts) <= 2: | ||||||
|         return None, None, s |         return None, None, s | ||||||
|     if len(parts) > 3: |  | ||||||
|         charset, language = parts[:2] |  | ||||||
|         s = TICK.join(parts[2:]) |  | ||||||
|         return charset, language, s |  | ||||||
|     return parts |     return parts | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Barry Warsaw
						Barry Warsaw