mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 07:57:27 +03:00 
			
		
		
		
	[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
		
							parent
							
								
									ade1db0835
								
							
						
					
					
						commit
						ceec3f92fc
					
				|  | @ -24,9 +24,8 @@ except ImportError: | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def _accept(prefix: bytes) -> bool: | def _accept(prefix: bytes) -> bool: | ||||||
|     is_jxl = ( |     is_jxl = prefix.startswith(b"\xff\x0a") or prefix.startswith( | ||||||
|         prefix.startswith(b"\xff\x0a") |         b"\x00\x00\x00\x0c\x4a\x58\x4c\x20\x0d\x0a\x87\x0a" | ||||||
|         or prefix.startswith(b"\x00\x00\x00\x0c\x4a\x58\x4c\x20\x0d\x0a\x87\x0a") |  | ||||||
|     ) |     ) | ||||||
|     if is_jxl and not SUPPORTED: |     if is_jxl and not SUPPORTED: | ||||||
|         msg = "image file could not be identified because JXL support not installed" |         msg = "image file could not be identified because JXL support not installed" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user