import os

def readlinkabs(l):
    """
    Return an absolute path for the destination 
    of a symlink
    """
    if not (os.path.islink(l)):
        return None
    p = os.readlink(l)
    if os.path.isabs(p):
        return p
    return os.path.join(os.path.dirname(l), p)


[(10, 'os.readlink', 'os.readlink', False, 'import os\n'), (11, 'os.path.isabs', 'os.path.isabs', False, 'import os\n'), (8, 'os.path.islink', 'os.path.islink', False, 'import os\n'), (13, 'os.path.dirname', 'os.path.dirname', False, 'import os\n')]