From bb667157d915f35e0a296d6a85e2fe3e659720ff Mon Sep 17 00:00:00 2001 From: siijmDqEaiPR <100380192+siijmDqEaiPR@users.noreply.github.com> Date: Mon, 20 Mar 2023 16:00:30 -0400 Subject: [PATCH 1/2] Fix python3 compatibility issue when using an authenticated proxy --- dyn/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dyn/core.py b/dyn/core.py index 0e12036..7a2e378 100644 --- a/dyn/core.py +++ b/dyn/core.py @@ -185,9 +185,9 @@ def connect(self): use_proxy = True if self.proxy_user and self.proxy_pass: - auth = '{}:{}'.format(self.proxy_user, self.proxy_pass) - headers['Proxy-Authorization'] = 'Basic ' + base64.b64encode( - auth) + auth = '{}:{}'.format(self.proxy_user, self.proxy_pass).encode() + headers['Proxy-Authorization'] = 'Basic ' + str(base64.b64encode( + auth)) if use_proxy: if self.ssl: From 0002a4033ab3fe6f362d7a39bb19943b98e529bb Mon Sep 17 00:00:00 2001 From: siijmDqEaiPR <100380192+siijmDqEaiPR@users.noreply.github.com> Date: Mon, 20 Mar 2023 16:01:01 -0400 Subject: [PATCH 2/2] Bump version to 1.8.5 --- dyn/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyn/__init__.py b/dyn/__init__.py index e5c2ade..fcf2e60 100644 --- a/dyn/__init__.py +++ b/dyn/__init__.py @@ -5,7 +5,7 @@ Requires Python 2.6 or higher, or the "simplejson" package. """ -version_info = (1, 8, 4) +version_info = (1, 8, 5) __name__ = 'dyn' __doc__ = 'A python wrapper for the DynDNS and DynEmail APIs' __author__ = '''