Skip to content

Commit

Permalink
change != to is not
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Aug 15, 2024
1 parent 97c555b commit 17489bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foyer/xml_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def _elements_equal(e1, e2):
Note: This was grabbed, basically verbatim, from:
https://stackoverflow.com/questions/7905380/testing-equivalence-of-xml-etree-elementtree
"""
if type(e1) != type(e2):
if type(e1) is not type(e2):
return False
if e1.tag != e2.tag:
return False
Expand Down

0 comments on commit 17489bc

Please sign in to comment.