For plain strings (e.g. backup_file) I used .format syntax as used in modern Python. For logging calls, I used the % notation as that allows for deferred evaluation.
This string manipulation leads to better readability and fewer type errors as there is no need to explicitly cast everything to strings.
For plain strings (e.g.
backup_file
) I used.format
syntax as used in modern Python. Forlogging
calls, I used the%
notation as that allows for deferred evaluation.This string manipulation leads to better readability and fewer type errors as there is no need to explicitly cast everything to strings.