|
15 | 15 | import importlib |
16 | 16 | import os |
17 | 17 | import shlex |
18 | | -from subprocess import Popen |
| 18 | +import subprocess |
19 | 19 | import sys |
20 | 20 | import tarfile |
21 | 21 | import textwrap |
@@ -160,7 +160,7 @@ def download_and_install(uri, name=DEFAULT_MODULE_NAME, cache=True): |
160 | 160 |
|
161 | 161 |
|
162 | 162 | def run(module_name, args=None, env_vars=None, wait=True, capture_error=False): |
163 | | - # type: (str, list, dict, bool, bool) -> Popen |
| 163 | + # type: (str, list, dict, bool, bool) -> subprocess.Popen |
164 | 164 | """Run Python module as a script. |
165 | 165 |
|
166 | 166 | Search sys.path for the named module and execute its contents as the __main__ module. |
@@ -252,7 +252,7 @@ def import_module(uri, name=DEFAULT_MODULE_NAME, cache=None): # type: (str, str |
252 | 252 |
|
253 | 253 |
|
254 | 254 | def run_module(uri, args, env_vars=None, name=DEFAULT_MODULE_NAME, cache=None, wait=True, capture_error=False): |
255 | | - # type: (str, list, dict, str, bool, bool, bool) -> Popen |
| 255 | + # type: (str, list, dict, str, bool, bool, bool) -> subprocess.Popen |
256 | 256 | """Download, prepare and executes a compressed tar file from S3 or provided directory as a module. |
257 | 257 |
|
258 | 258 | SageMaker Python SDK saves the user provided scripts as compressed tar files in S3 |
|
0 commit comments