6.6.1 - Close files after reading them

This commit is contained in:
Sean Whalen
2019-09-23 00:53:36 -04:00
parent ff5bb1e03e
commit 7d7a3e0919
3 changed files with 8 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
6.6.1
-----
- Close files after reading them
6.6.0
-----
+2 -1
View File
@@ -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,
+1 -1
View File
@@ -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"