pylint/graph.py
def target_info_from_filename(filename):
    """Transforms /some/path/foo.png into ('/some/path', 'foo.png', 'png')."""
    basename = osp.basename(filename)
    storedir = osp.dirname(osp.abspath(filename))
    target = filename.split(".")[-1]
    return storedir, basename, target
def target_info_from_filename(filename):
    """Transforms /some/path/foo.png into ('/some/path', 'foo.png', 'png')."""
    basename = osp.basename(filename)
    storedir = osp.dirname(osp.abspath(filename))
    target = filename.split(".")[-1]
    return storedir, basename, target
def target_info_from_filename ( filename ) : basename = osp . basename ( filename ) storedir = osp . dirname ( osp . abspath ( filename ) ) target = filename . split ( "." ) [ - 1 ] return storedir , basename , target
Transforms /some/path/foo.png into ('/some/path', 'foo.png', 'png').
Transforms / some / path / foo . png into ( / some / path foo . png png ) .