Skip to content

Commit 1dc3282

Browse files
committed
remove extra code around check_output
1 parent 7f4330d commit 1dc3282

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

rsconnect/actions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,6 @@ def create_notebook_deployment_bundle(
15351535
hide_all_input,
15361536
hide_tagged_input,
15371537
image=image,
1538-
check_output=None,
15391538
)
15401539
except subprocess.CalledProcessError as exc:
15411540
# Jupyter rendering failures are often due to

rsconnect/bundle.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,9 @@ def make_notebook_html_bundle(
369369
hide_all_input: bool,
370370
hide_tagged_input: bool,
371371
image: str = None,
372-
check_output: typing.Callable = subprocess.check_output, # used to default to subprocess.check_output
372+
check_output: typing.Callable = subprocess.check_output,
373373
) -> typing.IO[bytes]:
374374
# noinspection SpellCheckingInspection
375-
if check_output is None:
376-
check_output = subprocess.check_output
377-
378375
cmd = [
379376
python,
380377
"-m",

tests/test_bundle.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,11 @@ def do_test_html_bundle(self, directory):
225225
nb_path = join(directory, "dummy.ipynb")
226226

227227
bundle = make_notebook_html_bundle(
228-
nb_path, sys.executable, hide_all_input=False, hide_tagged_input=False, image=None, check_output=None
228+
nb_path,
229+
sys.executable,
230+
hide_all_input=False,
231+
hide_tagged_input=False,
232+
image=None,
229233
)
230234

231235
tar = tarfile.open(mode="r:gz", fileobj=bundle)

0 commit comments

Comments
 (0)