Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2014-08-07 02:04:11 +0400
committerKenneth Skovhede <kenneth@hexad.dk>2014-08-07 02:04:11 +0400
commit9655629ceec0b18511d4845fffc60ccca41dae7b (patch)
tree2dcfd29477e636ab27b8f5b877296f5be634b9fb /fix-sln.py
parent2990974d1563a1692db7670af527df3431859313 (diff)
Added a small script to detect duplicates in the solution file
Diffstat (limited to 'fix-sln.py')
-rw-r--r--fix-sln.py22
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