Skip to content

Instantly share code, notes, and snippets.

@freakboy3742
Created July 9, 2016 08:14
Show Gist options
  • Save freakboy3742/1545bacb96109cbb6714fa19bb222f17 to your computer and use it in GitHub Desktop.
Save freakboy3742/1545bacb96109cbb6714fa19bb222f17 to your computer and use it in GitHub Desktop.
Tarfile oddity...
hammer:github rkm$ tar ztvf dist/Python-3.4-Android-support.b1.tar.gz
drwxr-xr-x 0 0 0 0 9 Jul 16:12 libs/
-rw-r--r-- 0 0 0 161831 9 Jul 16:12 libs/python-android-support.jar
-rw-r--r-- 0 0 0 29 9 Jul 16:12 support.version
hammer:github rkm$ python3
Python 3.4.2 (default, Apr 25 2015, 09:25:15)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipfile
>>> zipfile.is_zipfile('dist/Python-3.4-Android-support.b1.tar.gz')
True
hammer:github rkm$ tar ztvf dist/Python-3.4-Android-support.b1.tar.gz
-rw-r--r-- 0 0 0 29 9 Jul 16:14 support.version
drwxr-xr-x 0 0 0 0 9 Jul 16:14 libs/
-rw-r--r-- 0 0 0 161831 9 Jul 16:14 libs/python-android-support.jar
hammer:github rkm$ python3
Python 3.4.2 (default, Apr 25 2015, 09:25:15)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import zipfile
>>> zipfile.is_zipfile('dist/Python-3.4-Android-support.b1.tar.gz')
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment