From eb0c866d4e226606fe86e0f90af10c776e664a5c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 27 Oct 2021 14:49:58 -0700 Subject: lint: small cleanups, mostly E711 and E713 --- fatcat_scholar/transform.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fatcat_scholar/transform.py') diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py index 3213b8d..f805e7b 100644 --- a/fatcat_scholar/transform.py +++ b/fatcat_scholar/transform.py @@ -588,7 +588,7 @@ def transform_heavy(heavy: IntermediateBundle) -> Optional[ScholarDoc]: file_ident=fulltext.file_ident, release_ident=fulltext.release_ident, ) - if ia_sim and not AccessType.ia_sim in access_dict: + if ia_sim and AccessType.ia_sim not in access_dict: access_dict[AccessType.ia_sim] = ScholarAccess( access_type=AccessType.ia_sim, access_url=f"https://archive.org/details/{ia_sim.issue_item}/page/{ia_sim.first_page}", @@ -608,11 +608,11 @@ def transform_heavy(heavy: IntermediateBundle) -> Optional[ScholarDoc]: for _, acc in access_dict.items(): if "://www.medrxiv.org/" in acc.access_url: biblio.container_name = "medRxiv" - if biblio.release_stage == None: + if biblio.release_stage is None: biblio.release_stage = "submitted" elif "://www.biorxiv.org/" in acc.access_url: biblio.container_name = "bioRxiv" - if biblio.release_stage == None: + if biblio.release_stage is None: biblio.release_stage = "submitted" return ScholarDoc( -- cgit v1.2.3