aboutsummaryrefslogtreecommitdiff
path: root/crosperf/machine_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'crosperf/machine_manager.py')
-rw-r--r--crosperf/machine_manager.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/crosperf/machine_manager.py b/crosperf/machine_manager.py
index 6ed7e513..7211662c 100644
--- a/crosperf/machine_manager.py
+++ b/crosperf/machine_manager.py
@@ -151,9 +151,8 @@ class CrosMachine(object):
def _GetMD5Checksum(self, ss):
if ss:
- return hashlib.md5(ss).hexdigest()
- else:
- return ''
+ return hashlib.md5(ss.encode('utf-8')).hexdigest()
+ return ''
def _GetMachineID(self):
command = 'dump_vpd_log --full --stdout'