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
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
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 ' +