File: 10_python3.14_fix.patch

package info (click to toggle)
fetchmail 6.6.2-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 7,912 kB
  • sloc: ansic: 19,458; sh: 7,133; python: 2,395; perl: 564; yacc: 447; lex: 286; makefile: 261; awk: 124; lisp: 84; exp: 43; sed: 17
file content (30 lines) | stat: -rw-r--r-- 929 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
From de48c6921b57da6ad5698a259fb4deafcc59a01c Mon Sep 17 00:00:00 2001
From: Matthias Andree <matthias.andree@gmx.de>
Date: Sat, 7 Feb 2026 16:28:13 +0100
Subject: [PATCH] mock-pop3-server.py: Move return out of finally block

This apparently confuses some scripts but also is
ill-defined - does the finally override the return from the except
blocks if one catches the exception?

To fix Debian Bug#1127303.
---
 t.operation.mock-pop3-server.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t.operation.mock-pop3-server.py b/t.operation.mock-pop3-server.py
index f8f6e2ae..adbbbbe1 100644
--- a/t.operation.mock-pop3-server.py
+++ b/t.operation.mock-pop3-server.py
@@ -208,7 +208,7 @@ def serve(messages_filename, host=DEFAULT_HOST, port=DEFAULT_PORT):
     finally:
         sock.shutdown(socket.SHUT_RDWR)
         sock.close()
-        return 0
+    return 0
 
 
 if __name__ == "__main__":
-- 
GitLab