Skip to content

Commit

Permalink
Merge pull request #105 from TiansuYu/tiansu-fix-syntax-error
Browse files Browse the repository at this point in the history
Fix syntax error: `not in ""`.
  • Loading branch information
titipata authored Nov 15, 2021
2 parents dd0eec4 + 6f6eb89 commit ca03cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubmed_parser/medline_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def parse_references(pubmed_article, reference_list):
return references
else:
references = ";".join(
[ref["pmid"] for ref in references if ref["pmid"] is not ""]
[ref["pmid"] for ref in references if ref["pmid"] != ""]
)
return references

Expand Down Expand Up @@ -560,7 +560,7 @@ def parse_article_info(
[
author.get("affiliation", "")
for author in authors_dict
if author.get("affiliation", "") is not ""
if author.get("affiliation", "") != ""
]
)
authors = ";".join(
Expand Down

0 comments on commit ca03cf4

Please sign in to comment.