zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
U
T±dã    @sFddlmZddlZddlmZddddœddd    d    d
d d œd d„ZdS)é)Ú annotationsNé)Ú __version__F)ÚactionÚpluralÚstrz
int | Nonez
str | NoneÚboolÚNone)Ú
deprecatedÚwhenÚ replacementrrÚreturncCsê|rdnd}|dkrd}nf|tt d¡dƒkrJ|›d|›d}t|ƒ‚n6|d    krXd
}n(|d krfd }nd |›dt›d}t|ƒ‚|r”|r”d}t|ƒ‚|r¦d|›d}n|r¾d| d¡›d}nd}tj|›d|›d|›|›t    dddS)a.
    Deprecations helper.
 
    :param deprecated: Name of thing to be deprecated.
    :param when: Pillow major version to be removed in.
    :param replacement: Name of replacement.
    :param action: Instead of "replacement", give a custom call to action
        e.g. "Upgrade to new thing".
    :param plural: if the deprecated thing is plural, needing "are" instead of "is".
 
    Usually of the form:
 
        "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
        Use [replacement] instead."
 
    You can leave out the replacement sentence:
 
        "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"
 
    Or with another call to action:
 
        "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
        [action]."
    ZareÚisNza future versionÚ.rú z" deprecated and should be removed.é
zPillow 10 (2023-07-01)é zPillow 11 (2024-10-15)zUnknown removal version: z    . Update ú?z*Use only one of 'replacement' and 'action'z. Use z     instead.z. Úz# deprecated and will be removed in é)Ú
stacklevel)
ÚintrÚsplitÚ RuntimeErrorÚ__name__Ú
ValueErrorÚrstripÚwarningsÚwarnÚDeprecationWarning)r
r r rrÚis_ÚremovedÚmsg©r#úEd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PIL/_deprecate.pyÚ    deprecates2! 
ýr%)N)Ú
__future__rrrrr%r#r#r#r$Ú<module>s  ýú