We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac26599 commit 976191dCopy full SHA for 976191d
recirq/documentation_utils.py
@@ -71,7 +71,7 @@ def fetch_guide_data_collection_data(base_dir=None):
71
# Read into a BytesIO object to make it seekable
72
stream_bytes = io.BytesIO(stream.read())
73
74
- with tarfile.open(fileobj=stream_bytes, mode='r|xz') as tf:
+ with tarfile.open(fileobj=stream_bytes, mode='r:xz') as tf:
75
for member in tf.getmembers():
76
# Ensure the path being extracted is safe.
77
if not os.path.abspath(os.path.join(base_dir, member.name)).startswith(
0 commit comments