Gitiles
Code Review
Sign In
LeafOS
/
LeafOS-Project
/
android_vendor_lawnicons
/
35aabd973fa5e48dd9343b57836623a287b75b4c
/
.
/
find_duplicates.py
blob: 62d2d07e8917569fa9f4a56e8fca715b1a18c564 [
file
] [
log
] [
blame
]
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
)