From 9655629ceec0b18511d4845fffc60ccca41dae7b Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Thu, 7 Aug 2014 00:04:11 +0200 Subject: [PATCH] Added a small script to detect duplicates in the solution file --- fix-sln.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 fix-sln.py 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