Skip to content

Commit 9655629

Browse files
committed
Added a small script to detect duplicates in the solution file
1 parent 2990974 commit 9655629

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

fix-sln.py

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import re
2+
import io
3+
4+
f = open('Duplicati.sln')
5+
c = f.read()
6+
f.close()
7+
8+
p = re.compile(r"\{[0-9a-fA-F\-]*\}")
9+
10+
tags = p.findall(c)
11+
12+
d = {}
13+
14+
for n in tags:
15+
d[n] = 0
16+
17+
for n in tags:
18+
d[n] = d[n] + 1
19+
20+
for n in d:
21+
if d[n] > 7:
22+
print n

0 commit comments

Comments
 (0)