From 7d80405505f74f3e7108567ab5cc5782278eda01 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 16 Oct 2020 13:51:11 -0700 Subject: lint: don't use default keyword for os.environ.get() pylint complains; not sure this is really valid --- fatcat_scholar/query_fatcat.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/query_fatcat.py b/fatcat_scholar/query_fatcat.py index c2b28a0..c862bc0 100644 --- a/fatcat_scholar/query_fatcat.py +++ b/fatcat_scholar/query_fatcat.py @@ -44,9 +44,7 @@ def run_query_fatcat(query: str, fulltext_only: bool, json_output: Any) -> None: """ api_session = requests_retry_session() - es_backend = os.environ.get( - "ELASTICSEARCH_BACKEND", default="https://search.fatcat.wiki", - ) + es_backend = os.environ.get("ELASTICSEARCH_BACKEND", "https://search.fatcat.wiki") es_index = "fatcat_release" es_client = elasticsearch.Elasticsearch(es_backend) -- cgit v1.2.3