Skip to content

Commit 976191d

Browse files
authored
Open tutorial file using normal mode (#415)
1 parent ac26599 commit 976191d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recirq/documentation_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def fetch_guide_data_collection_data(base_dir=None):
7171
# Read into a BytesIO object to make it seekable
7272
stream_bytes = io.BytesIO(stream.read())
7373

74-
with tarfile.open(fileobj=stream_bytes, mode='r|xz') as tf:
74+
with tarfile.open(fileobj=stream_bytes, mode='r:xz') as tf:
7575
for member in tf.getmembers():
7676
# Ensure the path being extracted is safe.
7777
if not os.path.abspath(os.path.join(base_dir, member.name)).startswith(

0 commit comments

Comments
 (0)