Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 06cb76b

Browse files
committedSep 11, 2023
python 3.8 compatibility
1 parent f476183 commit 06cb76b

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed
 

‎rsconnect/bundle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ def _create_quarto_file_list(
12191219
@dataclasses.dataclass
12201220
class QuartoManifestInfo:
12211221
manifest: Manifest
1222-
relevant_files: list[str]
1222+
relevant_files: typing.List[str]
12231223

12241224

12251225
def make_quarto_manifest(

‎tests/test_bundle.py

+9-16
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,9 @@ def test_make_quarto_source_bundle_from_project(self):
255255
},
256256
}
257257

258-
with (
259-
make_quarto_source_bundle(
260-
temp_proj, inspect, AppModes.STATIC_QUARTO, environment, [], [], None
261-
).bundle as bundle,
262-
tarfile.open(mode="r:gz", fileobj=bundle) as tar,
263-
):
258+
with make_quarto_source_bundle(
259+
temp_proj, inspect, AppModes.STATIC_QUARTO, environment, [], [], None
260+
).bundle as bundle, tarfile.open(mode="r:gz", fileobj=bundle) as tar:
264261
names = sorted(tar.getnames())
265262
self.assertEqual(
266263
names,
@@ -341,12 +338,9 @@ def test_make_quarto_source_bundle_from_project_with_requirements(self):
341338
},
342339
}
343340

344-
with (
345-
make_quarto_source_bundle(
346-
temp_proj, inspect, AppModes.STATIC_QUARTO, environment, [], [], None
347-
).bundle as bundle,
348-
tarfile.open(mode="r:gz", fileobj=bundle) as tar,
349-
):
341+
with make_quarto_source_bundle(
342+
temp_proj, inspect, AppModes.STATIC_QUARTO, environment, [], [], None
343+
).bundle as bundle, tarfile.open(mode="r:gz", fileobj=bundle) as tar:
350344
names = sorted(tar.getnames())
351345
self.assertEqual(
352346
names,
@@ -405,10 +399,9 @@ def test_make_quarto_source_bundle_from_file(self):
405399
"engines": ["markdown"],
406400
}
407401

408-
with (
409-
make_quarto_source_bundle(temp_proj, inspect, AppModes.STATIC_QUARTO, None, [], [], None).bundle as bundle,
410-
tarfile.open(mode="r:gz", fileobj=bundle) as tar,
411-
):
402+
with make_quarto_source_bundle(
403+
temp_proj, inspect, AppModes.STATIC_QUARTO, None, [], [], None
404+
).bundle as bundle, tarfile.open(mode="r:gz", fileobj=bundle) as tar:
412405
names = sorted(tar.getnames())
413406
self.assertEqual(
414407
names,

0 commit comments

Comments
 (0)
Please sign in to comment.