write_rule, write_header, and prepare need to only open the file once. the Watchdog is gong to pop off on every write and I don't want to have that happen a bunch of times in a row.
It should look something like this
def write(self):
with open(config, "w+") as config:
prepare(config)
write_head(config)
write_rules(config)
write_rule, write_header, and prepare need to only open the file once. the Watchdog is gong to pop off on every write and I don't want to have that happen a bunch of times in a row.
It should look something like this