aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/configurations.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/scripts/configurations.py b/scripts/configurations.py
index d6780c9..aaa6937 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'))