File: 0001-Python-3.14-support.patch

package info (click to toggle)
python-pgmagick 0.7.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,156 kB
  • sloc: cpp: 3,672; python: 2,082; makefile: 160; sh: 40
file content (26 lines) | stat: -rw-r--r-- 802 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
23
24
25
26
From: Stefano Rivera <stefano@rivera.za.net>
Date: Sat, 27 Dec 2025 10:51:37 -0400
Subject: Python 3.14 support:

The AST Constant `.s` attribute was replaced by `.value`
See: https://github.com/python/cpython/issues/119562

Forwarded: https://github.com/hhatto/pgmagick/pull/91
Bug-Debian: https://bugs.debian.org/1122003
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 3437894..40ee5a3 100644
--- a/setup.py
+++ b/setup.py
@@ -211,7 +211,7 @@ def version():
     with io.open('pgmagick/_version.py') as input_file:
         for line in input_file:
             if line.startswith('__version__'):
-                return ast.parse(line).body[0].value.s
+                return ast.parse(line).body[0].value.value
 
 
 setup(name='pgmagick',