Skip to content

Instantly share code, notes, and snippets.

@rbanffy
Created August 28, 2012 14:20
Show Gist options
  • Save rbanffy/3498439 to your computer and use it in GitHub Desktop.
Save rbanffy/3498439 to your computer and use it in GitHub Desktop.
@@ -88,7 +88,8 @@ if PYTHON_VERSION < (2, 6):
# patch for this bug in tarfile module - http://bugs.python.org/issue1719898
if PYTHON_VERSION == (2, 4):
- from tarfile import nts, GNUTYPE_SPARSE, normpath
+ from tarfile import nts, GNUTYPE_SPARSE
+ from os.path import normpath
def frombuf(cls, buf):
"""Construct a TarInfo object from a 512 byte string buffer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment