migrated cssh to python3
fixes [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4366]
This commit is contained in:
parent
f112cc3a2e
commit
7f050ffba4
|
|
@ -34,7 +34,7 @@ if __name__ == '__main__':
|
||||||
color_saturation = float(sys.argv[3])
|
color_saturation = float(sys.argv[3])
|
||||||
string_format = sys.argv[4] # eg 'osx' 'linux'
|
string_format = sys.argv[4] # eg 'osx' 'linux'
|
||||||
# color_hue = int(md5(seed_string).hexdigest()[:8], 16) # taken from http://www.guguncube.com/3237/python-string-to-number-hash
|
# color_hue = int(md5(seed_string).hexdigest()[:8], 16) # taken from http://www.guguncube.com/3237/python-string-to-number-hash
|
||||||
color_hue = float(int(md5(seed_string).hexdigest(), 16) % 100000) / 100000.0
|
color_hue = float(int(md5(seed_string.encode('utf-8')).hexdigest(), 16) % 100000) / 100000.0
|
||||||
|
|
||||||
# print(color_hue)
|
# print(color_hue)
|
||||||
if string_format == 'osx':
|
if string_format == 'osx':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue