summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-11-11 23:49:21 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-11-11 23:49:21 +0100
commit971aaada27d0385c35a2e3c2e8b5edad9a901e16 (patch)
treedd03d225c8522dcb07b0e319cf2b9b455d51a250 /plugins
parent2e322cf221e90da9b9ba4f42eb290fd8dc36fee4 (diff)
downloadpoezio-971aaada27d0385c35a2e3c2e8b5edad9a901e16.tar.gz
poezio-971aaada27d0385c35a2e3c2e8b5edad9a901e16.tar.bz2
poezio-971aaada27d0385c35a2e3c2e8b5edad9a901e16.tar.xz
poezio-971aaada27d0385c35a2e3c2e8b5edad9a901e16.zip
Fix an issue with python3.2 (byte vs string) in gnupg module.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpg/gnupg.py2
1 files changed, 2 insertions, 0 deletions
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)