Skip to content

Commit 340b954

Browse files
Merge pull request #663 from theunraveler/windows_pem_file
Use os.linesep to write pem files in a cross-platform way
2 parents ef188d0 + e873046 commit 340b954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/sigver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def extract_rsa_key_from_x509_cert(pem):
450450

451451

452452
def pem_format(key):
453-
return '\n'.join([
453+
return os.linesep.join([
454454
'-----BEGIN CERTIFICATE-----',
455455
key,
456456
'-----END CERTIFICATE-----'

0 commit comments

Comments
 (0)