diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2014-08-07 02:04:11 +0400 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2014-08-07 02:04:11 +0400 |
commit | 9655629ceec0b18511d4845fffc60ccca41dae7b (patch) | |
tree | 2dcfd29477e636ab27b8f5b877296f5be634b9fb /fix-sln.py | |
parent | 2990974d1563a1692db7670af527df3431859313 (diff) |
Added a small script to detect duplicates in the solution file
Diffstat (limited to 'fix-sln.py')
-rw-r--r-- | fix-sln.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fix-sln.py b/fix-sln.py new file mode 100644 index 000000000..fc40d7dd5 --- /dev/null +++ b/fix-sln.py @@ -0,0 +1,22 @@ +import re +import io + +f = open('Duplicati.sln') +c = f.read() +f.close() + +p = re.compile(r"\{[0-9a-fA-F\-]*\}") + +tags = p.findall(c) + +d = {} + +for n in tags: + d[n] = 0 + +for n in tags: + d[n] = d[n] + 1 + +for n in d: + if d[n] > 7: + print n |