Roland Bogosi added the comment:

For anyone finding this bug through Google before it is fixed, a workaround 
could be to monkeypatch the OPEN_METH dict with an OrderedDict:

        tarfile.TarFile.OPEN_METH = OrderedDict()
        tarfile.TarFile.OPEN_METH['gz']  = 'gzopen'
        tarfile.TarFile.OPEN_METH['bz2'] = 'bz2open'
        tarfile.TarFile.OPEN_METH['xz']  = 'xzopen'
        tarfile.TarFile.OPEN_METH['tar'] = 'taropen'

----------
nosy: +RoliSoft

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28449>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to