diff --git a/CHANGELOG.md b/CHANGELOG.md index 158a160..c7a13e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +6.6.1 +----- + +- Close files after reading them + 6.6.0 ----- diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index 862a449..5379711 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -32,7 +32,7 @@ from parsedmarc.utils import is_outlook_msg, convert_outlook_msg from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime from parsedmarc.utils import parse_email -__version__ = "6.6.0" +__version__ = "6.6.1" logging.basicConfig( format='%(levelname)8s:%(filename)s:%(lineno)d:' @@ -872,6 +872,7 @@ def parse_report_file(input_, nameservers=None, dns_timeout=2.0, file_object = input_ content = file_object.read() + file_object.close() try: report = parse_aggregate_report_file(content, offline=offline, diff --git a/setup.py b/setup.py index fb5a87f..64fc89e 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup from codecs import open from os import path -__version__ = "6.6.0" +__version__ = "6.6.1" description = "A Python package and CLI for parsing aggregate and " \ "forensic DMARC reports"