PEP 8 fixes

This commit is contained in:
Sean Whalen
2020-11-24 22:02:55 -05:00
parent e5720422f6
commit 529fe27a97
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -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
View File
@@ -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"
]