aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pillow/py3/patches/_webp.patch
blob: d978c33bdc835aafc44e62f454b0c7f27fbbeb1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Удалил дублирующиеся функции, они уже определены в _imaging.c
--- a/_webp.c
+++ b/_webp.c
@@ -21,16 +21,6 @@
 
 #endif
 
-void
-ImagingSectionEnter(ImagingSectionCookie *cookie) {
-    *cookie = (PyThreadState *)PyEval_SaveThread();
-}
-
-void
-ImagingSectionLeave(ImagingSectionCookie *cookie) {
-    PyEval_RestoreThread((PyThreadState *)*cookie);
-}
-
 /* -------------------------------------------------------------------- */
 /* WebP Muxer Error Handling                                            */
 /* -------------------------------------------------------------------- */