Commit aadb160
committed
gh-155193: Add missing canonical parameter to urlsafe_b64decode()
The what's new entry for 3.15 documents canonical=False being added
to b32decode(), b32hexdecode(), b64decode(), urlsafe_b64decode(),
a85decode(), b85decode(), and z85decode() (gh-146311), but
urlsafe_b64decode() did not actually receive the parameter.
Add canonical=False to urlsafe_b64decode()'s signature and pass it
through to binascii.a2b_base64(), consistent with b64decode(). The
default preserves existing behavior.1 parent 83b3354 commit aadb160
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
| |||
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
187 | | - | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
| |||
0 commit comments