mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-07-05 16:25:09 +00:00
PEP 8 fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -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"
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user