Commits

Cédric Bonhomme committed e849304

Fixed error: 'bytes' object has no attribute 'encode'.

  • Participants
  • Parent commits 46c5f1d

Comments (0)

Files changed (1)

 
     # now we're ready to compare the hash values
     if opened_file is not None:
-        sha256_hash.update(data.encode())
+        sha256_hash.update(data)
         hashed_data = sha256_hash.hexdigest()
 
         if hashed_data == expected_hash: