Files
Joe Farebrother a8591c79c5 Update test
2024-08-28 09:11:34 +01:00

16 lines
296 B
Python

import pathlib
def get_password():
return "password"
def write_password(filename):
password = get_password()
path = pathlib.Path(filename)
path.write_text(password) # NOT OK
path.write_bytes(password.encode("utf-8")) # NOT OK
path.open("w").write(password) # NOT OK