def FromString ( s , * * kwargs ) : f = StringIO . StringIO ( s ) return FromFile ( f , * * kwargs )
python stringio to file path
Like FromFile but takes a string .
def FromString(s, **kwargs):
    """Like FromFile, but takes a string."""
    
    f = StringIO.StringIO(s)
    return FromFile(f, **kwargs)