summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Yan <felixonmars@archlinux.org>2019-02-09 02:02:09 +0800
committerJelle van der Waa <jelle@vdwaa.nl>2019-02-09 14:58:48 +0100
commit24406b2764ecfd9923136feae9031e08b40ef85b (patch)
treef1f62f308d8a9c3034c4c65cf5c042a90ab0512c
parentbdcfe1628762fd727afac3f68203e5b970937bde (diff)
downloadarchweb-24406b2764ecfd9923136feae9031e08b40ef85b.tar.gz
archweb-24406b2764ecfd9923136feae9031e08b40ef85b.zip
Use .decode() instead of str()
-rw-r--r--main/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.py b/main/utils.py
index 141f26c2..2dc066da 100644
--- a/main/utils.py
+++ b/main/utils.py
@@ -172,6 +172,6 @@ class SignatureWrapper(SignaturePacket):
def __init__(self, packet):
for field in ("sig_version", "creation_time", "expiration_time"):
setattr(self, field, getattr(packet, field))
- self.key_id = str(packet.key_id) if packet.key_id else None
+ self.key_id = packet.key_id.decode() if packet.key_id else None
# vim: set ts=4 sw=4 et: