diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/spdx.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/spdx.bbclass b/meta/classes/spdx.bbclass index a3e22afc33..fb78e274a8 100644 --- a/meta/classes/spdx.bbclass +++ b/meta/classes/spdx.bbclass | |||
@@ -208,7 +208,7 @@ def hash_file(file_name): | |||
208 | def hash_string(data): | 208 | def hash_string(data): |
209 | import hashlib | 209 | import hashlib |
210 | sha1 = hashlib.sha1() | 210 | sha1 = hashlib.sha1() |
211 | sha1.update(data) | 211 | sha1.update(data.encode('utf-8')) |
212 | return sha1.hexdigest() | 212 | return sha1.hexdigest() |
213 | 213 | ||
214 | def run_fossology(foss_command, full_spdx): | 214 | def run_fossology(foss_command, full_spdx): |