mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	Use ternary operator
This commit is contained in:
		
							parent
							
								
									3bbcad1ad2
								
							
						
					
					
						commit
						902e3812a8
					
				|  | @ -203,10 +203,7 @@ ENCODERS = {} | |||
| # -------------------------------------------------------------------- | ||||
| # Modes | ||||
| 
 | ||||
| if sys.byteorder == "little": | ||||
|     _ENDIAN = "<" | ||||
| else: | ||||
|     _ENDIAN = ">" | ||||
| _ENDIAN = "<" if sys.byteorder == "little" else ">" | ||||
| 
 | ||||
| 
 | ||||
| def _conv_type_shape(im): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user