aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/configurations.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/configurations.py b/scripts/configurations.py
index 3fb22d9..ba326ea 100644
--- a/scripts/configurations.py
+++ b/scripts/configurations.py
@@ -119,11 +119,9 @@ def __calchash__(file):
for c in csort:
try:
if con[c]:
- cstr += '+'
- else:
- cstr += '-'
+ cstr += c
except ValueError:
- cstr += '0'
+ pass
# Add missing
csortfile = open(sf(conf.hashconfigsort), 'a');
@@ -135,9 +133,7 @@ def __calchash__(file):
csort.append(key)
csortfile.write(key + '\n')
if val:
- cstr += '+'
- else:
- cstr += '-'
+ cstr += key
csortfile.close()
hsh = hashlib.md5(bytes(cstr, 'UTF-8'))