Skip to content

Commit cd0d3f5

Browse files
committed
Move subprocess import to top-level imports section
1 parent 1b5312a commit cd0d3f5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

scripts/1-fetch/doaj_fetch.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import argparse
2020
import csv
2121
import os
22+
import subprocess
2223
import sys
2324
import textwrap
2425
import time
@@ -169,9 +170,6 @@ def load_country_names():
169170
PATHS["repo"], "dev", "generate_country_codes.py"
170171
)
171172
try:
172-
# Standard library
173-
import subprocess
174-
175173
subprocess.run([sys.executable, generate_script], check=True)
176174
LOGGER.info("Successfully generated country codes file")
177175
except Exception as e:

0 commit comments

Comments
 (0)