File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def as_file(self):
105
105
else :
106
106
content = self ._data
107
107
self ._file = _create_temp_file_with_content (
108
- base64 .decodestring (content ))
108
+ base64 .standard_b64decode (content ))
109
109
else :
110
110
self ._file = _create_temp_file_with_content (self ._data )
111
111
if self ._file and not os .path .isfile (self ._file ):
@@ -120,7 +120,7 @@ def as_data(self):
120
120
with open (self ._file ) as f :
121
121
if self ._base64_file_content :
122
122
self ._data = bytes .decode (
123
- base64 .encodestring (str .encode (f .read ())))
123
+ base64 .standard_b64encode (str .encode (f .read ())))
124
124
else :
125
125
self ._data = f .read ()
126
126
return self ._data
Original file line number Diff line number Diff line change 40
40
41
41
42
42
def _base64 (string ):
43
- return base64 .encodestring (string .encode ()).decode ()
43
+ return base64 .standard_b64encode (string .encode ()).decode ()
44
44
45
45
46
46
def _format_expiry_datetime (dt ):
You can’t perform that action at this time.
0 commit comments