Skip to content

Instantly share code, notes, and snippets.

@harlowja
Last active Nov 11, 2018
Embed
What would you like to do?
def not_indented(fh):
fh.write("b")
def close_it_and_call(filename, mode, func):
with open(filename, mode) as fh:
func(fh)
def main():
close_it_and_call("blob", "w", not_indented)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment