summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0027/gpg.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-07-22 12:15:46 -0700
committerLance Stout <lancestout@gmail.com>2012-07-22 12:15:46 -0700
commit459e1ed34587932de6cedafc305454d94df388a7 (patch)
treeda91c56cd0fa51961fc4b3612ff13b63a4bfae36 /sleekxmpp/plugins/xep_0027/gpg.py
parent6680c244f501643010c1be64b4cd06da26c80c7c (diff)
downloadslixmpp-459e1ed34587932de6cedafc305454d94df388a7.tar.gz
slixmpp-459e1ed34587932de6cedafc305454d94df388a7.tar.bz2
slixmpp-459e1ed34587932de6cedafc305454d94df388a7.tar.xz
slixmpp-459e1ed34587932de6cedafc305454d94df388a7.zip
Handle Windows newlines in XEP-0027.
Closes issue #184
Diffstat (limited to 'sleekxmpp/plugins/xep_0027/gpg.py')
-rw-r--r--sleekxmpp/plugins/xep_0027/gpg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0027/gpg.py b/sleekxmpp/plugins/xep_0027/gpg.py
index 9c6ca078..3ca9c36d 100644
--- a/sleekxmpp/plugins/xep_0027/gpg.py
+++ b/sleekxmpp/plugins/xep_0027/gpg.py
@@ -24,7 +24,7 @@ def _extract_data(data, kind):
if not begin_headers and 'BEGIN PGP %s' % kind in line:
begin_headers = True
continue
- if begin_headers and line == '':
+ if begin_headers and line.stripped() == '':
begin_data = True
continue
if 'END PGP %s' % kind in line: