ipython/ipython — pull request #6980 by jasongrout (2014-11-19 09:47:02+00:00)
Title: Use os.remove instead of shutil.rmtree if we try to remove a symbolic link

If we try to remove a symbolic link to a directory with shutil.rmtree, we get
the error “Cannot call rmtree on a symbolic link”