aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-03 12:19:52 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-03 12:26:30 -0700
commitcfab1ddcd8a05b62ecc16763d18a6ecee8fa234f (patch)
treec026c246f6e5938ecb828c41475ba9eeaef7f745 /python/fatcat_tools
parent4c77bdb8d92523935454f1c406c954913f923c01 (diff)
downloadfatcat-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.
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/arxiv.py5
-rw-r--r--python/fatcat_tools/importers/jalc.py4
-rw-r--r--python/fatcat_tools/importers/jstor.py5
-rw-r--r--python/fatcat_tools/importers/pubmed.py5
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]))