Not sure why this is generated, but this fixes a problem with a
particular file that was received with the following final line:
F-WE<-*A5]AY]%7>8'&!!(_Y<F*55_"*%46"<OFG=>_5(F/\'``!@
*/
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;