Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/i/piped-0.5.8/piped/providers/smtp_provider.py   piped(Download)
    if hasattr(file, 'as_string'):
        # this looks like a email.message.Message
        file = StringIO(file.as_string())
 
    if not hasattr(file, 'read'):

src/p/i/Piped-HEAD/piped/providers/smtp_provider.py   Piped(Download)
    if hasattr(file, 'as_string'):
        # this looks like a email.message.Message
        file = StringIO(file.as_string())
 
    if not hasattr(file, 'read'):