File: 0003-numpy-2.3-compat.patch

package info (click to toggle)
pylibtiff 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 996 kB
  • sloc: python: 10,170; ansic: 1,064; makefile: 15
file content (22 lines) | stat: -rw-r--r-- 800 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Wed, 10 Sep 2025 06:35:50 +0000
Subject: numpy-2.3-compat

Forwarded: https://github.com/pearu/pylibtiff/pull/195
---
 libtiff/scripts/convert.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libtiff/scripts/convert.py b/libtiff/scripts/convert.py
index 8ed37ff..574747d 100644
--- a/libtiff/scripts/convert.py
+++ b/libtiff/scripts/convert.py
@@ -51,7 +51,7 @@ def runner(parser, options, args):
     for ifd in tiff.IFD:
         s = ifd.get('ImageDescription')
         if s is not None:
-            description.append(s.value.tostring())
+            description.append(s.value.tobytes())
     init_description = '\n'.join(description)
     samples_list, names_list = tiff.get_samples()
     while samples_list: