Mercurial > ~astiob > upreckon > hgweb
diff zipfile.py @ 97:bbf9c434fa57
Added zipfile-with-bzip2 implementation for Python 3.2
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Wed, 02 Mar 2011 19:00:57 +0000 |
parents | 4ea7133ac25c |
children |
line wrap: on
line diff
--- a/zipfile.py Mon Feb 28 23:16:49 2011 +0000 +++ b/zipfile.py Wed Mar 02 19:00:57 2011 +0000 @@ -1,7 +1,11 @@ import sys if sys.version_info[0] >= 3: - from zipfile31 import * -elif sys.version_info[1] >= 7: - from zipfile27 import * + if sys.version_info[1] >= 2: + from zipfile32 import * + else: + from zipfile31 import * else: - from zipfile26 import * \ No newline at end of file + if sys.version_info[0] == 2 and sys.version_info[1] >= 7: + from zipfile27 import * + else: + from zipfile26 import * \ No newline at end of file