Package: python3.11 / 3.11.2-6+deb12u6

fix-py_compile.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix regression byte-compiling filenames from stdin
Bug-upstream: https://bugs.python.org/issue45428
Forwarded: https://github.com/python/cpython/pull/28848

--- a/Lib/py_compile.py
+++ b/Lib/py_compile.py
@@ -194,6 +194,7 @@
     else:
         filenames = args.filenames
     for filename in filenames:
+        filename = filename.rstrip('\n')
         try:
             compile(filename, doraise=True)
         except PyCompileError as error: