From 431a6532317f9910be9a54ffee5af2b901d5bee3 Mon Sep 17 00:00:00 2001 From: barneygale Date: Wed, 11 Oct 2023 04:48:21 +0100 Subject: [PATCH] [3.12] GH-110488: Fix two small issues in `pathlib.PurePath.with_name()` (GH-110651) Ensure that `PurePath('foo/a').with_name('.')` raises `ValueError` Ensure that `PureWindowsPath('foo/a').with_name('a:b')` does not raise `ValueError`.. (cherry picked from commit b5f7777cb3ecae02d49e0b348968c1ff1ffe21f4) Co-authored-by: Barney Gale