File: 0012_fix_configparser.patch

package info (click to toggle)
vmm 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,844 kB
  • sloc: python: 4,710; makefile: 217; sh: 172
file content (21 lines) | stat: -rw-r--r-- 813 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
commit 3eade030f6ef7e79fc475c5c91973742754621dd
Author: Alexander Mankuta <alex@pointless.one>
Date:   Sat Jul 6 10:25:56 2024 +0300

    Fix ConfigParser usage in Python 3.12
    
    Signed-off-by: Pascal Volk <user@localhost.localdomain.org>

Index: vmm/VirtualMailManager/config.py
===================================================================
--- vmm.orig/VirtualMailManager/config.py
+++ vmm/VirtualMailManager/config.py
@@ -356,7 +356,7 @@ class Config(LazyConfig):
         """
         with open(self._cfg_filename, 'r', encoding='utf-8') as self._cfg_file:
             try:
-                self.readfp(self._cfg_file)
+                self.read_file(self._cfg_file)
             except (MissingSectionHeaderError, ParsingError) as err:
                 raise ConfigError(str(err), CONF_ERROR)