diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 12:19:52 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 12:26:30 -0700 |
commit | cfab1ddcd8a05b62ecc16763d18a6ecee8fa234f (patch) | |
tree | c026c246f6e5938ecb828c41475ba9eeaef7f745 | |
parent | 4c77bdb8d92523935454f1c406c954913f923c01 (diff) | |
download | fatcat-cfab1ddcd8a05b62ecc16763d18a6ecee8fa234f.tar.gz fatcat-cfab1ddcd8a05b62ecc16763d18a6ecee8fa234f.zip |
importers: remove unused __main__ routine
These perhaps were used in initial develoment or testing?
fatcat_import.py is the correct way to do these imports, even for
testing/development.
-rw-r--r-- | python/fatcat_tools/importers/arxiv.py | 5 | ||||
-rw-r--r-- | python/fatcat_tools/importers/jalc.py | 4 | ||||
-rw-r--r-- | python/fatcat_tools/importers/jstor.py | 5 | ||||
-rw-r--r-- | python/fatcat_tools/importers/pubmed.py | 5 |
4 files changed, 0 insertions, 19 deletions
diff --git a/python/fatcat_tools/importers/arxiv.py b/python/fatcat_tools/importers/arxiv.py index 7a689ed2..0957db2c 100644 --- a/python/fatcat_tools/importers/arxiv.py +++ b/python/fatcat_tools/importers/arxiv.py @@ -370,8 +370,3 @@ class ArxivRawImporter(EntityImporter): resp = self.parse_record(article) print(json.dumps(resp)) # sys.exit(-1) - - -if __name__ == "__main__": - parser = ArxivRawImporter(None) - parser.parse_file(open(sys.argv[1])) diff --git a/python/fatcat_tools/importers/jalc.py b/python/fatcat_tools/importers/jalc.py index 8e3af416..a7e06e6a 100644 --- a/python/fatcat_tools/importers/jalc.py +++ b/python/fatcat_tools/importers/jalc.py @@ -409,7 +409,3 @@ class JalcImporter(EntityImporter): print(resp) # sys.exit(-1) - -if __name__ == "__main__": - parser = JalcImporter(None, None) - parser.parse_file(open(sys.argv[1])) diff --git a/python/fatcat_tools/importers/jstor.py b/python/fatcat_tools/importers/jstor.py index 8c7bfad4..287fb308 100644 --- a/python/fatcat_tools/importers/jstor.py +++ b/python/fatcat_tools/importers/jstor.py @@ -333,8 +333,3 @@ class JstorImporter(EntityImporter): resp = self.parse_record(article) print(json.dumps(resp)) # sys.exit(-1) - - -if __name__ == "__main__": - parser = JstorImporter(None, None) - parser.parse_file(open(sys.argv[1])) diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py index cfdafcf7..97433445 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -851,8 +851,3 @@ class PubmedImporter(EntityImporter): resp = self.parse_record(article) print(json.dumps(resp)) # sys.exit(-1) - - -if __name__ == "__main__": - parser = PubmedImporter(None, None) - parser.parse_file(open(sys.argv[1])) |