summaryrefslogtreecommitdiff
path: root/cli/app/utils/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/utils/util.py')
-rw-r--r--cli/app/utils/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/app/utils/util.py b/cli/app/utils/util.py
index 5f72088..08992c7 100644
--- a/cli/app/utils/util.py
+++ b/cli/app/utils/util.py
@@ -1,9 +1,9 @@
import simplejson as json
-from hashlib import sha256
+import hashlib
def sha256(s):
sha256 = hashlib.sha256()
- sha256.update(s)
+ sha256.update(str.encode(s))
return sha256.hexdigest()
def read_json(fn):