Skip to content

Commit

Permalink
Create find_duplicates.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk Michalik committed Dec 22, 2021
1 parent 3c68a20 commit 9d16802
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions find_duplicates.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from xml.etree.ElementTree import parse

root = parse("app/src/main/res/xml/grayscale_icon_map.xml").getroot()
packages = [i.attrib["package"] for i in root]
duplicates = {i for i in packages if packages.count(i) > 1}
print(duplicates)

0 comments on commit 9d16802

Please sign in to comment.