it's easy to fix the base64 related failures (patch attached) but then the
build hangs for me.
--- a/kubernetes/config/kube_config.py
+++ b/kubernetes/config/kube_config.py
@@ -97,7 +97,7 @@
         if use_data_if_no_file:
             if self._base64_file_content:
                 self._file = _create_temp_file_with_content(
-                    base64.decodestring(self._data.encode()))
+                    base64.standard_b64decode(self._data.encode()))
             else:
                 self._file = _create_temp_file_with_content(self._data)
         if self._file and not os.path.isfile(self._file):
@@ -112,7 +112,7 @@
             with open(self._file) as f:
                 if self._base64_file_content:
                     self._data = bytes.decode(
-                        base64.encodestring(str.encode(f.read())))
+                        base64.standard_b64encode(str.encode(f.read())))
                 else:
                     self._data = f.read()
         return self._data
--- a/kubernetes/config/kube_config_test.py
+++ b/kubernetes/config/kube_config_test.py
@@ -40,7 +40,7 @@
 
 
 def _base64(string):
-    return base64.encodestring(string.encode()).decode()
+    return base64.standard_b64encode(string.encode()).decode()
 
 
 def _format_expiry_datetime(dt):

Reply via email to