Changaco / python-libarchive-c

Python interface to libarchive
Other
70 stars 37 forks source link

Python 3.8: tarfile.filemode is gone, use stat.filemode if available #88

Closed hroncok closed 4 years ago

hroncok commented 5 years ago
>           mode = tarfile.filemode(entry.mode)[1:]
E           AttributeError: module 'tarfile' has no attribute 'filemode'
Changaco commented 5 years ago

Thanks @hroncok. I'm going to wait for Python 3.8 to be released before merging this PR, if that's okay with you.

hroncok commented 5 years ago

It also works with older versions. What's your motivation to wait for the actual release?

kapsh commented 4 years ago

@Changaco in fact this should be merged since Python 3.3 release. Please, don't wait.

https://bugs.python.org/issue33842