File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
Requires Python 2.6 or higher, or the "simplejson" package.
7
7
"""
8
- version_info = (1 , 8 , 4 )
8
+ version_info = (1 , 8 , 5 )
9
9
__name__ = 'dyn'
10
10
__doc__ = 'A python wrapper for the DynDNS and DynEmail APIs'
11
11
__author__ = '''
Original file line number Diff line number Diff line change @@ -185,9 +185,9 @@ def connect(self):
185
185
use_proxy = True
186
186
187
187
if self .proxy_user and self .proxy_pass :
188
- auth = '{}:{}' .format (self .proxy_user , self .proxy_pass )
189
- headers ['Proxy-Authorization' ] = 'Basic ' + base64 .b64encode (
190
- auth )
188
+ auth = '{}:{}' .format (self .proxy_user , self .proxy_pass ). encode ()
189
+ headers ['Proxy-Authorization' ] = 'Basic ' + str ( base64 .b64encode (
190
+ auth ))
191
191
192
192
if use_proxy :
193
193
if self .ssl :
You can’t perform that action at this time.
0 commit comments