mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-30 23:47:27 +03:00 
			
		
		
		
	Updated example code to new-style class [ci skip]
This commit is contained in:
		
							parent
							
								
									ccd9a97183
								
							
						
					
					
						commit
						b65e72b2fc
					
				|  | @ -2325,7 +2325,7 @@ class Image: | ||||||
|           It may also be an object with a :py:meth:`~method.getdata` method |           It may also be an object with a :py:meth:`~method.getdata` method | ||||||
|           that returns a tuple supplying new **method** and **data** values:: |           that returns a tuple supplying new **method** and **data** values:: | ||||||
| 
 | 
 | ||||||
|             class Example(object): |             class Example: | ||||||
|                 def getdata(self): |                 def getdata(self): | ||||||
|                     method = Image.EXTENT |                     method = Image.EXTENT | ||||||
|                     data = (0, 0, 100, 100) |                     data = (0, 0, 100, 100) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user