mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	document IptcImagePlugin deprecations
This commit is contained in:
		
							parent
							
								
									fa4b3776f0
								
							
						
					
					
						commit
						aa605bc6f2
					
				|  | @ -44,6 +44,17 @@ ImageFile.raise_oserror | |||
| error codes returned by a codec's ``decode()`` method, which ImageFile already does | ||||
| automatically. | ||||
| 
 | ||||
| IptcImageFile helper functions | ||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
| 
 | ||||
| .. deprecated:: 10.2.0 | ||||
| 
 | ||||
| The functions ``IptcImageFile.dump`` and ``IptcImageFile.i``, and the constant | ||||
| ``IptcImageFile.PAD`` have been deprecated and will be removed in Pillow | ||||
| 12.0.0 (2025-10-15). These are undocumented helper functions intended | ||||
| for internal use, so there is no replacement. They can each be replaced | ||||
| by a single line of code using builtin functions in Python. | ||||
| 
 | ||||
| Removed features | ||||
| ---------------- | ||||
| 
 | ||||
|  |  | |||
|  | @ -20,10 +20,14 @@ ImageFile.raise_oserror | |||
| error codes returned by a codec's ``decode()`` method, which ImageFile already does | ||||
| automatically. | ||||
| 
 | ||||
| TODO | ||||
| ^^^^ | ||||
| IptcImageFile helper functions | ||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||||
| 
 | ||||
| TODO | ||||
| The functions ``IptcImageFile.dump`` and ``IptcImageFile.i``, and the constant | ||||
| ``IptcImageFile.PAD`` have been deprecated and will be removed in Pillow | ||||
| 12.0.0 (2025-10-15). These are undocumented helper functions intended | ||||
| for internal use, so there is no replacement. They can each be replaced | ||||
| by a single line of code using builtin functions in Python. | ||||
| 
 | ||||
| API Changes | ||||
| =========== | ||||
|  |  | |||
|  | @ -48,11 +48,13 @@ def _i8(c: int | bytes) -> int: | |||
| 
 | ||||
| 
 | ||||
| def i(c): | ||||
|     """.. deprecated:: 10.2.0""" | ||||
|     deprecate("IptcImagePlugin.i", 12) | ||||
|     return _i(c) | ||||
| 
 | ||||
| 
 | ||||
| def dump(c): | ||||
|     """.. deprecated:: 10.2.0""" | ||||
|     deprecate("IptcImagePlugin.dump", 12) | ||||
|     for i in c: | ||||
|         print("%02x" % _i8(i), end=" ") | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user