From 007287d33830efbbe7659e68fbf24769b926b31b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 15 Oct 2017 16:26:58 +0300 Subject: [PATCH] Cleanup: Fix flake8 E306 expected 1 blank line before a nested definition, found 0 --- mimedecode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mimedecode.py b/mimedecode.py index 0ec5e79..69af1ac 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -342,10 +342,12 @@ def _save_message(msg, outstring, save_headers=False, save_body=False): global output save_output = output outfile = open_output_file(fname) + def _output_bytes(s): if not isinstance(s, bytes): s = s.encode(g.default_encoding, "replace") outfile.write(s) + output = _output_bytes if save_headers: output_headers(msg) -- 2.39.5