From cfab1ddcd8a05b62ecc16763d18a6ecee8fa234f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Nov 2021 12:19:52 -0700 Subject: 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. --- python/fatcat_tools/importers/arxiv.py | 5 ----- python/fatcat_tools/importers/jalc.py | 4 ---- python/fatcat_tools/importers/jstor.py | 5 ----- python/fatcat_tools/importers/pubmed.py | 5 ----- 4 files changed, 19 deletions(-) (limited to 'python/fatcat_tools') 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])) -- cgit v1.2.3