patch-2.x --------- Apply this patch, if you want to use tarfile with Python 2.0 or 2.1. Please note that the patched tarfile module is not as thoroughly tested as the main version. USE IT AT YOUR OWN RISK! How to install it: patch -p1 < patch-2.x python setup.py install Limitations ----------- - The iterator feature was first introduced in Python 2.2. To "iterate" over a TarFile object, you must do: tar = tarfile.open("test.tar") while 1: tarinfo = tar.next() if tarinfo is None: break [...] - Since there's no bz2 module for Python <2.2 you cannot access .tar.bz2 files.