mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Use bytes literal, fixes Tests/test_file_fli.py
This commit is contained in:
		
							parent
							
								
									b29326b175
								
							
						
					
					
						commit
						0c18a8f3b8
					
				|  | @ -47,7 +47,7 @@ class FliImageFile(ImageFile.ImageFile): | ||||||
|         magic = i16(s[4:6]) |         magic = i16(s[4:6]) | ||||||
|         if not (magic in [0xAF11, 0xAF12] and |         if not (magic in [0xAF11, 0xAF12] and | ||||||
|                 i16(s[14:16]) in [0, 3] and  # flags |                 i16(s[14:16]) in [0, 3] and  # flags | ||||||
|                 s[20:22] == '\x00\x00'):  # reserved |                 s[20:22] == b"\x00\x00"): # reserved | ||||||
|             raise SyntaxError("not an FLI/FLC file") |             raise SyntaxError("not an FLI/FLC file") | ||||||
| 
 | 
 | ||||||
|         # image characteristics |         # image characteristics | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user