File: fix-compatibility-with-py3.13.patch

package info (click to toggle)
feed2toot 0.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 296 kB
  • sloc: python: 1,039; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 1,175 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
27
28
29
30
31
32
33
34
From: fluffy <fluffy@beesbuzz.biz>
Date: Thu, 12 Sep 2024 20:56:43 -0700
Subject: Switch from long-deprecated SafeConfigParser to ConfigParser

Bug: https://gitlab.com/chaica/feed2toot/-/issues/87
Bug-Debian: https://bugs.debian.org/1118778
Origin: https://gitlab.com/chaica/feed2toot/-/merge_requests/25
Last-Update: 2025-11-08
---
 feed2toot/confparse.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/feed2toot/confparse.py b/feed2toot/confparse.py
index 54010a2..c9cb66f 100644
--- a/feed2toot/confparse.py
+++ b/feed2toot/confparse.py
@@ -17,7 +17,7 @@
 '''Get values of the configuration file'''
 
 # standard library imports
-from configparser import SafeConfigParser
+from configparser import ConfigParser
 import logging
 import os
 import os.path
@@ -58,7 +58,7 @@ class ConfParse:
         for pathtoconfig in self.clioptions.configs:
             options = {}
             # read the configuration file
-            config = SafeConfigParser()
+            config = ConfigParser()
             if not config.read(os.path.expanduser(pathtoconfig)):
                 sys.exit('Could not read config file')
             ####################