Gitiles
Code Review
Sign In
LeafOS
/
LeafOS-Project
/
android_vendor_lawnicons
/
4eebfc193bf5c9ee2337b31b288115fef573e52c
/
.
/
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
)