[issue28020] Python 3 logging HTTPHandler doesn't implement a standard http basic authorize

2016-09-08 Thread SenBin Yu
New submission from SenBin Yu: The standard http basic authorization is basic-credentials = "Basic" SP basic-cookie basic-cookie = userid-password = [ token ] ":" *TEXT but the logging/handlers module do the fllowing: s = ('u%s:%s' % self.credentials).encode(

[issue27996] Python 3 ssl module can't use a fileno to create a SSLSocket

2016-09-07 Thread SenBin Yu
SenBin Yu added the comment: Yes, the giving code is what i desiere and shoud be supported. Sorry, i haven't see the patch file.And the next release will include this patch? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue27996] Python 3 ssl module can't use a fileno to create a SSLSocket

2016-09-07 Thread SenBin Yu
SenBin Yu added the comment: The issue 27629 describe creating a SSLSocket only with server_hostname argument.But what i said is that we can't creating a SSLSocket with fileno argument from a existing socket.I'm strange about this code design that meaningless branch conditions exists

[issue27996] Python 3 ssl module can't use a fileno to create a SSLSocket

2016-09-06 Thread SenBin Yu
New submission from SenBin Yu: In the SSLSocket __init__ function, it's ok to do a socket type check with argument sock.But meanwhile the sock argument can't be None, which make the SSLSocket socket __init__ way meaningless.Although there are three branch conditions as argument sock, fileno