Last analyzed f8d215e 3 months ago
Default analysis branch is
Currently analyzing run
File opened without the with statement PTC-W0010
3 months ago3 months old
Use the with statement to open a file
 20def convert(file_name):
 21    # Open csv file
 22    csv = + ".csv", mode="w", encoding="utf-8") 23
 24# Convert file_name.tsv to file_name.csv
 25    with + ".tsv", mode="r", encoding="windows-1252") as tsv: