From 971aaada27d0385c35a2e3c2e8b5edad9a901e16 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 11 Nov 2011 23:49:21 +0100 Subject: Fix an issue with python3.2 (byte vs string) in gnupg module. --- plugins/gpg/gnupg.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/gpg') diff --git a/plugins/gpg/gnupg.py b/plugins/gpg/gnupg.py index e3bed526..e9e45711 100644 --- a/plugins/gpg/gnupg.py +++ b/plugins/gpg/gnupg.py @@ -204,6 +204,8 @@ class GPG(object): lines = [] while True: line = stream.readline() + if not isinstance(line, str): + line = line.decode('utf-8') lines.append(line) if self.verbose: print(line) -- cgit v1.2.3