diff --git a/parsedmarc/elastic.py b/parsedmarc/elastic.py index 95b95a7..b448f28 100644 --- a/parsedmarc/elastic.py +++ b/parsedmarc/elastic.py @@ -171,7 +171,8 @@ class AlreadySaved(ValueError): """Raised when a report to be saved matches an existing report""" -def set_hosts(hosts, use_ssl=False, ssl_cert_path=None, username=None, password=None, timeout=60.0): +def set_hosts(hosts, use_ssl=False, ssl_cert_path=None, + username=None, password=None, timeout=60.0): """ Sets the Elasticsearch hosts to use @@ -197,7 +198,7 @@ def set_hosts(hosts, use_ssl=False, ssl_cert_path=None, username=None, password= else: conn_params['verify_certs'] = False if username: - conn_params['http_auth']=(username+":"+password) + conn_params['http_auth'] = (username+":"+password) connections.create_connection(**conn_params) diff --git a/parsedmarc/utils.py b/parsedmarc/utils.py index d75dec4..dbf525f 100644 --- a/parsedmarc/utils.py +++ b/parsedmarc/utils.py @@ -278,7 +278,8 @@ def get_ip_address_country(ip_address): "/usr/share/GeoIP/GeoLite2-Country.mmdb", "/var/lib/GeoIP/GeoLite2-Country.mmdb", "/var/local/lib/GeoIP/GeoLite2-Country.mmdb", - "%SystemDrive%\\ProgramData\\MaxMind\\GeoIPUpdate\\GeoIP\\GeoLite2-Country.mmdb", + "%SystemDrive%\\ProgramData\\MaxMind\\GeoIPUpdate\\GeoIP\\" + "GeoLite2-Country.mmdb", "C:\\GeoIP\\GeoLite2-Country.mmdb" ]