httpauth.py: Use `base64' module's built-in character twiddles.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 10 Aug 2013 12:29:41 +0000 (13:29 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 10 Aug 2013 12:29:41 +0000 (13:29 +0100)
commit40c5485b01a84b8a6b83f0e63576039cb856a36c
tree7cd1fc81ffa1d121318630a3583104c4623a28f9
parent44e941123a4c6ef44ad4e6856c09a0762b8bce86
httpauth.py: Use `base64' module's built-in character twiddles.

I hadn't noticed before: `b64encode' has an optional argument which you
can use to change the `+' and `/' characters.  Use them instead of a
post-pass with `str.replace'.
httpauth.py