The Samba-Bugzilla – Attachment 14993 Details for
Bug 13837
Samba 4.9.5 - Error on samba-tool with python 2.6
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Additional patch for 2.6 compatible logging
0001-py-logger-use-python-2.6-compatible-arguments.patch (text/plain), 980 bytes, created by
Douglas Bagnall
on 2019-03-26 20:52:18 UTC
(
hide
)
Description:
Additional patch for 2.6 compatible logging
Filename:
MIME Type:
Creator:
Douglas Bagnall
Created:
2019-03-26 20:52:18 UTC
Size:
980 bytes
patch
obsolete
>From 66c99d510e2be5a1a6c62653a7b0d64df13bd9b8 Mon Sep 17 00:00:00 2001 >From: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> >Date: Wed, 27 Mar 2019 09:47:56 +1300 >Subject: [PATCH] py/logger: use python 2.6 compatible arguments > >In 2.6 stream is a positional argument; 2.7+ it is also a keyword >argument. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=13837 >Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> >--- > python/samba/logger.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/python/samba/logger.py b/python/samba/logger.py >index 667c6487a51..b54268a628c 100644 >--- a/python/samba/logger.py >+++ b/python/samba/logger.py >@@ -62,7 +62,7 @@ def get_samba_logger( > Formatter = logging.Formatter > formatter = Formatter(fmt=fmt, datefmt=datefmt) > >- handler = logging.StreamHandler(stream=stream) >+ handler = logging.StreamHandler(stream) > handler.setFormatter(formatter) > logger.addHandler(handler) > >-- >2.17.1 >
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
Actions:
View
Attachments on
bug 13837
:
14952
|
14953
|
14976
|
14983
| 14993 |
14994
|
15002
|
15003
|
15004