Mercurial > ~astiob > upreckon > hgweb
view zipfile.py @ 70:b9d5857f7b9a
Better emulation of built-ins for testconf
Bug fix: next is now in compat.__all__.
Members of compat that do not correspond to built-ins or members of itertools are no longer added to built-ins while loading testconf.
xrange is now added to built-ins only while loading testconf and only in legacy mode.
testconf can now access the original built-ins through the CompatBuiltins context manager which is now exposed as config.builtins.
Bug fix: the default string encoding is no longer relied upon.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 03 Jan 2011 01:27:56 +0200 |
parents | 4ea7133ac25c |
children | bbf9c434fa57 |
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 *