def quopri_decode(input, errors='strict'):
 assert (errors == 'strict')
 f = StringIO(input)
 g = StringIO()
 quopri.decode(f, g)
 output = g.getvalue()
 return (output, len(input))

def quopri_decode ( input , errors = 'strict' ) : assert ( errors == 'strict' ) f = StringIO ( input ) g = StringIO ( ) quopri . decode ( f , g ) output = g . getvalue ( ) return ( output , len ( input ) )
decode the input .