Skip to content

Commit

Permalink
Fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed May 31, 2017
1 parent 22f7d23 commit 9dc6cbd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/onelogin/saml2/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def add_x509_key_descriptors(metadata, cert=None, add_encryption=True):

sp_sso_descriptor = entity_descriptor.getElementsByTagName('md:SPSSODescriptor')[0]
sp_sso_descriptor.insertBefore(key_descriptor.cloneNode(True), sp_sso_descriptor.firstChild)
if add_encryption:
if add_encryption:
sp_sso_descriptor.insertBefore(key_descriptor.cloneNode(True), sp_sso_descriptor.firstChild)

signing = xml.getElementsByTagName('md:KeyDescriptor')[0]
Expand Down
4 changes: 2 additions & 2 deletions tests/pep8.rc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pep8]
ignore = E501
max-line-length = 160
ignore = E501, E731
max-line-length = 160
4 changes: 2 additions & 2 deletions tests/src/OneLogin/saml2_tests/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,11 @@ def testDeleteLocalSession(self):
OneLogin_Saml2_Utils.delete_local_session()
self.assertEqual(1, local_session_test)

dscb = lambda: self.session_cear()
dscb = lambda: self.session_clear()
OneLogin_Saml2_Utils.delete_local_session(dscb)
self.assertEqual(0, local_session_test)

def session_cear(self):
def session_clear(self):
"""
Auxiliar method to test the delete_local_session method of the OneLogin_Saml2_Utils
"""
Expand Down

0 comments on commit 9dc6cbd

Please sign in to comment.