Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
clach04 committed Nov 16, 2024
1 parent 88edab2 commit 94edd45
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions puren_tonbo/tools/ptrecrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,16 @@ def process_file(filename, password, new_password, handler_class_newfile, force_
elif existing_files_resolution in ('overwrite' ,'replace', 'delete'):
pass
else:
raise NotImplementedError('new file matches existin, unknown existing_files_resolution %r', existing_files_resolution) # TODO different exception
# TODO check if file already there
raise NotImplementedError('new file matches existing, unknown existing_files_resolution %r', existing_files_resolution) # TODO different exception

file_already_exists = os.path.exists(new_filename) # TODO **potentially** multiple calls by this point
file_already_exists = os.path.exists(new_filename) # TODO **potentially** multiple calls by this point, option to refactor
if not file_already_exists:
# no need for safe write and file_replace()
log.error('FAKE WRITTING %s', new_filename)
if not simulate:
raise NotImplementedError('Actual writting1')
"""
out_file = open(filename_abs, 'wb')
out_file = open(new_filename, 'wb')
out_file.write_to(out_file, plaintext_bytes)
out_file.close()
"""
Expand Down

0 comments on commit 94edd45

Please sign in to comment.