diff options
Diffstat (limited to 'Modules/binascii.c')
| -rw-r--r-- | Modules/binascii.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c index 4776170755..7e03799126 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -265,7 +265,9 @@ binascii_a2b_uu(self, args)  	*/  	while( ascii_len-- > 0 ) {  		this_ch = *ascii_data++; -		if ( this_ch != ' ' && this_ch != '\n' && this_ch != '\r' ) { +		/* Extra '@' may be written as padding in some cases */ +		if ( this_ch != ' ' && this_ch != '@' && +		     this_ch != '\n' && this_ch != '\r' ) {  			PyErr_SetString(Error, "Trailing garbage");  			Py_DECREF(rv);  			return NULL;  | 
