mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Merge pull request #4577 from radarhere/class
Updated example code to new-style class
This commit is contained in:
		
						commit
						556c87c904
					
				| 
						 | 
					@ -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