diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2019-11-24 23:32:50 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2019-11-24 23:32:50 +0100 |
commit | 1bd4b72bf946c1f5327232de20ec68ba1369daeb (patch) | |
tree | b451c3a4897011c6e39b55dca7add98c9bdc686b /contrib | |
parent | de7238b4b9ee89885e50d030968e421990ff050e (diff) | |
download | m2crypto-1bd4b72bf946c1f5327232de20ec68ba1369daeb.tar.gz |
Stop using string module, which has been deprecated.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/isaac.httpslib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/isaac.httpslib.py b/contrib/isaac.httpslib.py index c5474b8..ec0a8ce 100644 --- a/contrib/isaac.httpslib.py +++ b/contrib/isaac.httpslib.py @@ -140,7 +140,7 @@ class HTTPProxyConnection(HTTPConnection): # Authenticated proxy import base64 userpass = "%s:%s" % (self.__username, self.__password) - enc_userpass = string.strip(base64.encodestring(userpass)) + enc_userpass = base64.encodestring(userpass).strip() self.putheader("Proxy-Authorization", "Basic %s" % enc_userpass) class HTTPSProxyResponse(HTTPResponse): |