We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 254937a commit be7a06bCopy full SHA for be7a06b
src/openai/cli/_tools/migrate.py
@@ -138,7 +138,10 @@ def install() -> Path:
138
unpacked_dir.mkdir(parents=True, exist_ok=True)
139
140
with tarfile.open(temp_file, "r:gz") as archive:
141
- archive.extractall(unpacked_dir, filter="data")
+ if sys.version_info >= (3, 12):
142
+ archive.extractall(unpacked_dir, filter="data")
143
+ else:
144
+ archive.extractall(unpacked_dir)
145
146
for item in unpacked_dir.iterdir():
147
item.rename(target_dir / item.name)
0 commit comments