The Samba-Bugzilla – Attachment 15775 Details for
Bug 14266
samba fails to build with Python 3.9: invalid open() mode U
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 4.12
0001-wafsamba-Do-not-use-rU-as-the-U-is-deprecated-in-Pyt.patch (text/plain), 1.77 KB, created by
Andreas Schneider
on 2020-02-06 09:39:29 UTC
(
hide
)
Description:
patch for 4.12
Filename:
MIME Type:
Creator:
Andreas Schneider
Created:
2020-02-06 09:39:29 UTC
Size:
1.77 KB
patch
obsolete
>From 9fb66d7f2c243fbee1b870640d79442b0e2ef3bd Mon Sep 17 00:00:00 2001 >From: Andreas Schneider <asn@samba.org> >Date: Wed, 5 Feb 2020 16:58:26 +0100 >Subject: [PATCH] wafsamba: Do not use 'rU' as the 'U' is deprecated in Python > 3.9 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >See https://docs.python.org/3.9/whatsnew/3.9.html#changes-in-the-python-api > >"open(), io.open(), codecs.open() and fileinput.FileInput no longer accept 'U' >(âuniversal newlineâ) in the file mode. This flag was deprecated since Python >3.3. In Python 3, the âuniversal newlineâ is used by default when a file is >open in text mode. The newline parameter of open() controls how universal >newlines works." > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=14266 > >Signed-off-by: Andreas Schneider <asn@samba.org> >Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> > >Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> >Autobuild-Date(master): Thu Feb 6 07:30:13 UTC 2020 on sn-devel-184 > >(cherry picked from commit 52722746a5eb40c309ba59f78bd8e3d897417bdc) >--- > buildtools/wafsamba/samba_utils.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py >index 4a5a34abae7..f9eae73ae44 100644 >--- a/buildtools/wafsamba/samba_utils.py >+++ b/buildtools/wafsamba/samba_utils.py >@@ -682,7 +682,7 @@ def PROCESS_SEPARATE_RULE(self, rule): > cache[node] = True > self.pre_recurse(node) > try: >- function_code = node.read('rU', None) >+ function_code = node.read('r', None) > exec(compile(function_code, node.abspath(), 'exec'), self.exec_dict) > finally: > self.post_recurse(node) >-- >2.25.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
ab
:
review+
Actions:
View
Attachments on
bug 14266
: 15775 |
15802
|
15806