Mercurial > ~astiob > upreckon > hgweb
view 2.00/zipfile.py @ 30:f17f19d9eb0a
hasattr -> try in the newly added 2.6 zipfile
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Wed, 24 Nov 2010 23:42:06 +0000 |
parents | a8cc383b787c |
children |
line wrap: on
line source
import sys if sys.version_info[0] >= 3: from zipfile31 import * elif sys.version_info[1] >= 7: from zipfile27 import * else: from zipfile26 import *