def copy_file(path):
    '''copy_file(string)

    Import the needed functions.
    Assert that the path is a file.
    Return all file data.'''
    from os.path import basename, isfile
    assert isfile(path)
    return (basename(path), file(path, 'rb', 0).read())
copy_file(string)

    Import the needed functions.
    Assert that the path is a file.
    Return all file data.
recipes/Python/440626_Copying_Pasting_Directories/recipe-440626.py