remove encode
This commit is contained in:
parent
c90a0561d4
commit
865d0c2a96
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class find_duplicate_files:
|
||||||
hash = hashlib.sha256()
|
hash = hashlib.sha256()
|
||||||
with open(file.path, 'rb') as file_pointer:
|
with open(file.path, 'rb') as file_pointer:
|
||||||
file_content = file_pointer.read()
|
file_content = file_pointer.read()
|
||||||
hash.update(file_content.encode('utf-8'))
|
hash.update(file_content)
|
||||||
files[hash.hexdigest()] = file.path
|
files[hash.hexdigest()] = file.path
|
||||||
elif file.is_dir(follow_symlinks=False):
|
elif file.is_dir(follow_symlinks=False):
|
||||||
more_files = self.recursive_scandir(
|
more_files = self.recursive_scandir(
|
||||||
|
|
Loading…
Reference in a new issue