mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Allow '@' for ' ' in uuencoded files.
This commit is contained in:
parent
40b546d40e
commit
5d9579707f
1 changed files with 5 additions and 2 deletions
|
@ -227,8 +227,11 @@ binascii_a2b_uu(self, args)
|
|||
*/
|
||||
this_ch = 0;
|
||||
} else {
|
||||
/* Check the character for legality */
|
||||
if ( this_ch < ' ' || this_ch > (' ' + 63)) {
|
||||
/* Check the character for legality
|
||||
** The 64 in stead of the expected 63 is because there are a few
|
||||
** uuencodes out there that use '@' as zero in stead of space.
|
||||
*/
|
||||
if ( this_ch < ' ' || this_ch > (' ' + 64)) {
|
||||
PyErr_SetString(Error, "Illegal char");
|
||||
Py_DECREF(rv);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue