Skip to content

Commit 8d130bf

Browse files
committed
More pep8 fixes
1 parent a281bc5 commit 8d130bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/onelogin/saml2/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ def __decrypt_assertion(self, xml):
901901
decrypted = OneLogin_Saml2_Utils.decrypt_element(encrypted_data, key, debug=debug, inplace=True)
902902
xml.replace(encrypted_assertion_nodes[0], decrypted)
903903
return xml
904-
904+
905905
def get_error(self):
906906
"""
907907
After executing a validation process, if it fails this method returns the cause

src/onelogin/saml2/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def validate_binary_sign(signed_query, signature, cert=None, algorithm=OneLogin_
10661066
@staticmethod
10671067
def normalize_url(url):
10681068
"""
1069-
Returns normalized URL for comparison.
1069+
Returns normalized URL for comparison.
10701070
This method converts the netloc to lowercase, as it should be case-insensitive (per RFC 4343, RFC 7617)
10711071
If standardization fails, the original URL is returned
10721072
Python documentation indicates that URL split also normalizes query strings if empty query fields are present
@@ -1082,4 +1082,4 @@ def normalize_url(url):
10821082
normalized_url = urlunsplit((scheme.lower(), netloc.lower(), path, query, fragment))
10831083
return normalized_url
10841084
except Exception:
1085-
return url
1085+
return url

0 commit comments

Comments
 (0)