[issue19974] tarfile doesn't overwrite symlink by directory

Vajrasky Kok report at bugs.python.org
Sun Jan 6 03:57:32 EST 2019


Vajrasky Kok <sky.kok at speaklikeaking.com> added the comment:

Martin Panter,

I have modernized the patch.

About your suggestion:
1. "import errno" -> Yes, this is unnecessary. I have removed it.
2. Use os.path.lexists instead of os.path.islink for broken symlink -> The thing is os.path.islink returns True also for broken symlink. I could not find a case where these methods return different result.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue19974>
_______________________________________


More information about the Python-bugs-list mailing list