MINGW-packages/mingw-w64-python3.13/0168-compileall-Normalize-paths.patch
Christoph Reiter 04c9ed3700 python3.13: Add 3.13.7
* add libb2 as dep
* remove "-Wl,--large-address-aware", default now via makepkg
* remove 2to3 logic, no longer in Python
2025-09-08 22:02:30 +02:00

25 lines
903 B
Diff

From 33f422c3a8e7ff71fa4fe2241acefebb82cf852e Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Fri, 5 Sep 2025 16:15:09 +0300
Subject: [PATCH 168/N] compileall: Normalize paths
---
Lib/compileall.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/compileall.py b/Lib/compileall.py
index cd450be..da8cafb 100644
--- a/Lib/compileall.py
+++ b/Lib/compileall.py
@@ -163,8 +163,8 @@ def compile_file(fullname, ddir=None, force=False, rx=None, quiet=0,
"in combination with stripdir or prependdir"))
success = True
- fullname = os.fspath(fullname)
- stripdir = os.fspath(stripdir) if stripdir is not None else None
+ fullname = os.path.normpath(os.fspath(fullname))
+ stripdir = os.path.normpath(os.fspath(stripdir)) if stripdir is not None else None
name = os.path.basename(fullname)
dfile = None