view zipfiles/zipfile.py @ 255:d32b14e5a43b default tip

Added support for LZMA/XZ-compressed tar files (Python 3.3+)
author Oleg Oshmyan <chortos@inbox.lv>
date Sun, 19 Oct 2014 01:33:22 +0200
parents 45d4a9dc707b
children
line wrap: on
line source

import sys
if sys.version_info[0] >= 3:
	if sys.version_info[1] >= 2:
		from zipfile32 import *
	else:
		from zipfile31 import *
else:
	if sys.version_info[0] == 2 and sys.version_info[1] >= 7:
		from zipfile27 import *
	else:
		from zipfile26 import *