Skip to content

Commit 97fc56f

Browse files
committed
Fix pep8
1 parent 4a3efac commit 97fc56f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/onelogin/saml2/logout_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from onelogin.saml2.utils import OneLogin_Saml2_Utils
2020
from onelogin.saml2.xmlparser import fromstring
2121

22+
2223
class OneLogin_Saml2_Logout_Request(object):
2324
"""
2425

src/onelogin/saml2/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def validate_xml(xml, schema, debug=False):
170170
@staticmethod
171171
def element_text(node):
172172
# Double check, the LXML Parser already removes comments
173-
#etree.strip_tags(node, etree.Comment)
173+
etree.strip_tags(node, etree.Comment)
174174
return node.text
175175

176176
@staticmethod

tests/src/OneLogin/saml2_tests/utils_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ def testValidateSign(self):
10351035
with self.assertRaisesRegexp(OneLogin_Saml2_ValidationError, "Expected exactly one signature node; got 0."):
10361036
OneLogin_Saml2_Utils.validate_sign(wrapping_attack1, cert, raise_exceptions=True)
10371037

1038+
10381039
if __name__ == '__main__':
10391040
runner = unittest.TextTestRunner()
10401041
unittest.main(testRunner=runner)

0 commit comments

Comments
 (0)