[projects/pld-builder.new] gpg: fix verify_sig docstring
arekm
arekm at pld-linux.org
Wed Aug 12 11:46:46 CEST 2026
commit 5f15bd9aa83342ecffe244b3848aa779553fcb3b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Aug 12 11:03:32 2026 +0200
gpg: fix verify_sig docstring
It takes str/bytes and returns bytes, not a file-like object and StringIO.
PLD_Builder/gpg.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/PLD_Builder/gpg.py b/PLD_Builder/gpg.py
index 259f841..667a15a 100644
--- a/PLD_Builder/gpg.py
+++ b/PLD_Builder/gpg.py
@@ -38,9 +38,8 @@ def get_keys(buf):
def verify_sig(buf):
"""Check signature.
- Given email as file-like object, return (signer-emails, signed-body).
- where signer-emails is lists of strings, and signed-body is StringIO
- object.
+ Given a signed message as str/bytes, return (signer-emails, signed-body),
+ where signer-emails is a list of strings and signed-body is bytes.
"""
if not os.path.isfile('/usr/bin/gpg'):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/44916a7a9112928736ec2b65b4fa58a90bc5828c
More information about the pld-cvs-commit
mailing list