diff --git a/mailparser/utils.py b/mailparser/utils.py index 302bfca..33b11a2 100644 --- a/mailparser/utils.py +++ b/mailparser/utils.py @@ -549,4 +549,4 @@ def write_sample(binary, payload, path, filename): # pragma: no cover f.write(base64.b64decode(payload)) else: with open(sample, "w") as f: - f.write(payload.encode("utf-8")) + f.write(payload) diff --git a/mailparser/version.py b/mailparser/version.py index c4bd4e6..87543da 100644 --- a/mailparser/version.py +++ b/mailparser/version.py @@ -17,7 +17,7 @@ limitations under the License. """ -__version__ = "3.9.2" +__version__ = "3.9.3" if __name__ == "__main__": print(__version__)