File tree 2 files changed +3
-3
lines changed
kubernetes_asyncio/config 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def as_file(self):
102
102
else :
103
103
content = self ._data
104
104
self ._file = _create_temp_file_with_content (
105
- base64 .decodestring (content ))
105
+ base64 .standard_b64decode (content ))
106
106
else :
107
107
self ._file = _create_temp_file_with_content (self ._data )
108
108
if self ._file and not os .path .isfile (self ._file ):
@@ -117,7 +117,7 @@ def as_data(self):
117
117
with open (self ._file ) as f :
118
118
if self ._base64_file_content :
119
119
self ._data = bytes .decode (
120
- base64 .encodestring (str .encode (f .read ())))
120
+ base64 .standard_b64encode (str .encode (f .read ())))
121
121
else :
122
122
self ._data = f .read ()
123
123
return self ._data
Original file line number Diff line number Diff line change 36
36
37
37
38
38
def _base64 (string ):
39
- return base64 .encodestring (string .encode ()).decode ()
39
+ return base64 .standard_b64encode (string .encode ()).decode ()
40
40
41
41
42
42
def _unpadded_base64 (string ):
You can’t perform that action at this time.
0 commit comments