Update Python 3 versions in tidy · rust-lang/rust@0f334ec (original) (raw)

Original file line number Diff line number Diff line change
@@ -324,8 +324,16 @@ fn get_or_create_venv(venv_path: &Path, src_reqs_path: &Path) -> Result<PathBuf,
324 324 fn create_venv_at_path(path: &Path) -> Result<(), Error> {
325 325 /// Preferred python versions in order. Newest to oldest then current
326 326 /// development versions
327 - const TRY_PY: &[&str] =
328 -&["python3.11", "python3.10", "python3.9", "python3", "python", "python3.12", "python3.13"];
327 + const TRY_PY: &[&str] = &[
328 +"python3.13",
329 +"python3.12",
330 +"python3.11",
331 +"python3.10",
332 +"python3.9",
333 +"python3",
334 +"python",
335 +"python3.14",
336 +];
329 337
330 338 let mut sys_py = None;
331 339 let mut found = Vec::new();