diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-15 10:47:26 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-21 11:41:29 -0700 |
commit | 4cff530fa3a49e845a2c21bbc85d74a92a3e2b06 (patch) | |
tree | c1b6bfbf99f020e65dcde983cce7a040cb401775 /python/parse_jstor_xml.py | |
parent | 53f48200960a28424bb1cfa3c3e42f2d035c6109 (diff) | |
download | fatcat-4cff530fa3a49e845a2c21bbc85d74a92a3e2b06.tar.gz fatcat-4cff530fa3a49e845a2c21bbc85d74a92a3e2b06.zip |
fix lint bugs in parsers
Diffstat (limited to 'python/parse_jstor_xml.py')
-rw-r--r-- | python/parse_jstor_xml.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/parse_jstor_xml.py b/python/parse_jstor_xml.py index dfb899fd..04f2b18e 100644 --- a/python/parse_jstor_xml.py +++ b/python/parse_jstor_xml.py @@ -114,7 +114,8 @@ class JstorXmlParser(): release_type = "letter" elif "[Poem" in title or "[Photograph" in title: release_type = None - else if title.startswith("[") and title.endswith("]"): + + if title.startswith("[") and title.endswith("]"): # strip brackets if that is all that is there (eg, translation or non-english) title = title[1:-1] |