summaryrefslogtreecommitdiff
path: root/rsa/pem.py
diff options
context:
space:
mode:
Diffstat (limited to 'rsa/pem.py')
-rw-r--r--rsa/pem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/pem.py b/rsa/pem.py
index 915a5c4..e11c8c3 100644
--- a/rsa/pem.py
+++ b/rsa/pem.py
@@ -80,7 +80,7 @@ def save_pem(contents, pem_marker):
(pem_start, pem_end) = _markers(pem_marker)
- b64 = base64.encodestring(contents).strip()
+ b64 = base64.encodestring(contents).replace('\n', '')
pem_lines = [pem_start]
for block_start in range(0, len(b64), 64):