iluxonchik / rfc-bibtex

A command line tool that creates bibtex entries for IETF RFCs and Internet Drafts.
MIT License
44 stars 4 forks source link

_generate_bibtex_to_file and _generate_bibtex_to_stdout are redundant #9

Closed simsong closed 5 years ago

simsong commented 6 years ago

These two functions are nearly identical. It would make more sense to have this be a function that takes either an open _out_file_name or sys.stdout.

iluxonchik commented 5 years ago

You are correct :smile: After completing #6 , some refactoring to the code will have to be done. I wrote this to quickly address a time-sensitive need, so I wasn't too worried about code quality.

iluxonchik commented 5 years ago

closed in #12