mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Flake8 fixes
This commit is contained in:
		
							parent
							
								
									1c99b39239
								
							
						
					
					
						commit
						c27110ab56
					
				|  | @ -42,6 +42,7 @@ from PIL._util import isStringType | |||
| # Application code should use the <b>Draw</b> factory, instead of | ||||
| # directly. | ||||
| 
 | ||||
| 
 | ||||
| class ImageDraw(object): | ||||
| 
 | ||||
|     ## | ||||
|  |  | |||
|  | @ -85,6 +85,7 @@ def fromqpixmap(im): | |||
|     # bytes_io.seek(0) | ||||
|     # return Image.open(bytes_io) | ||||
| 
 | ||||
| 
 | ||||
| def align8to32(bytes, width, mode): | ||||
|     """ | ||||
|     converts each scanline of data from 8 bit to 32 bit aligned | ||||
|  | @ -113,6 +114,7 @@ def align8to32(bytes, width, mode): | |||
| 
 | ||||
|     return b''.join(new_data) | ||||
| 
 | ||||
| 
 | ||||
| def _toqclass_helper(im): | ||||
|     data = None | ||||
|     colortable = None | ||||
|  |  | |||
|  | @ -70,7 +70,6 @@ class TestFileTiffMetadata(PillowTestCase): | |||
|         loaded_double = loaded.tag[tag_ids['YawAngle']][0] | ||||
|         self.assertAlmostEqual(loaded_double, doubledata) | ||||
| 
 | ||||
| 
 | ||||
|     def test_read_metadata(self): | ||||
|         img = Image.open('Tests/images/hopper_g4.tif') | ||||
| 
 | ||||
|  | @ -167,7 +166,6 @@ class TestFileTiffMetadata(PillowTestCase): | |||
|         self.assert_(im.info['icc_profile']) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
| 
 | ||||
|  |  | |||
|  | @ -60,7 +60,6 @@ if sys.platform.startswith('win32'): | |||
|     CreateDIBSection.argtypes = [ctypes.wintypes.HDC, ctypes.c_void_p, ctypes.c_uint, ctypes.POINTER(ctypes.c_void_p), ctypes.wintypes.HANDLE, ctypes.wintypes.DWORD] | ||||
|     CreateDIBSection.restype = ctypes.wintypes.HBITMAP | ||||
| 
 | ||||
| 
 | ||||
|     def serialize_dib(bi, pixels): | ||||
|         bf = BITMAPFILEHEADER() | ||||
|         bf.bfType = 0x4d42 | ||||
|  | @ -108,4 +107,3 @@ if sys.platform.startswith('win32'): | |||
| 
 | ||||
| if __name__ == '__main__': | ||||
|     unittest.main() | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user