Previous method of calculating hash wasn't work (wouldn't give same
result for same configuration) if there would be added
new configuration options to hashconfigsort 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');
csort.append(key)
csortfile.write(key + '\n')
if val:
- cstr += '+'
- else:
- cstr += '-'
+ cstr += key
csortfile.close()
hsh = hashlib.md5(bytes(cstr, 'UTF-8'))