Skip to content

Commit c0a2081

Browse files
committed
Made make_root, make_child and cleanup_namespaces static
1 parent 3e03e04 commit c0a2081

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/onelogin/saml2/xml_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class OneLogin_Saml2_XML(object):
2727
_unparse_etree = staticmethod(etree.tostring)
2828

2929
dump = staticmethod(etree.dump)
30-
make_root = etree.Element
31-
make_child = etree.SubElement
32-
cleanup_namespaces = etree.cleanup_namespaces
30+
make_root = staticmethod(etree.Element)
31+
make_child = staticmethod(etree.SubElement)
32+
cleanup_namespaces = staticmethod(etree.cleanup_namespaces)
3333

3434
@staticmethod
3535
def to_string(xml, **kwargs):

0 commit comments

Comments
 (0)