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

2016-09-08 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> TypeError in logging.HTTPHandler.emit; possible python 2 to 3 conversion issue ___ Python tracker

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

2016-09-08 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: There's indeed a 'u' in 3.5.1: https://hg.python.org/cpython/file/v3.5.1/Lib/logging/handlers.py#l1157 and latter fixed in 3.5.2: https://hg.python.org/cpython/file/v3.5.2/Lib/logging/handlers.py#l1159. Please consider update. -- nosy: +Chi Hsuan Yen

[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('utf-8') s = 'Basic ' +