Skip to content

Commit ca03cf4

Browse files
authored
Merge pull request #105 from TiansuYu/tiansu-fix-syntax-error
Fix syntax error: `not in ""`.
2 parents dd0eec4 + 6f6eb89 commit ca03cf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pubmed_parser/medline_parser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def parse_references(pubmed_article, reference_list):
472472
return references
473473
else:
474474
references = ";".join(
475-
[ref["pmid"] for ref in references if ref["pmid"] is not ""]
475+
[ref["pmid"] for ref in references if ref["pmid"] != ""]
476476
)
477477
return references
478478

@@ -560,7 +560,7 @@ def parse_article_info(
560560
[
561561
author.get("affiliation", "")
562562
for author in authors_dict
563-
if author.get("affiliation", "") is not ""
563+
if author.get("affiliation", "") != ""
564564
]
565565
)
566566
authors = ";".join(

0 commit comments

Comments
 (0)