Skip to content

Convert All Functions to Return the Conversion and Then Write to File In main.py #30

Description

@rvare

I was reviewing the source code recently to figure out test cases for issue #29 and I realized something. At the end of each function, a new file is opened and then writes the results to the new file. This operation appears multiple times throughout the functions. So, it makes sense to refactor this so that instead of having this duplicate code, it be put some where that's easily accessible for anyone to use. Maybe in its own file and function? Also, this operation should happen in main.py so that each function is only responsible for conversion and not writing to a file. We could also use this for easy try-catch handling too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RefactorRestructure existing source code for improvementsenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions