Last active
November 11, 2018 01:44
-
-
Save harlowja/b0d3e41782d2aabb0b6081c93a65348e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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