diff options
-rw-r--r-- | compat.py | 2 | ||||
-rw-r--r-- | testlib.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -69,8 +69,10 @@ if sys.version_info < (3, 0): from cStringIO import StringIO FileIO = file BytesIO = StringIO + reload = reload else: from io import FileIO, BytesIO, StringIO + from imp import reload # Where do pickles come from? try: @@ -1935,7 +1935,7 @@ def create_files(paths, chroot): if not osp.isdir(dirpath): os.makedirs(dirpath) for filepath in files: - file(filepath, 'w').close() + open(filepath, 'w').close() def enable_dbc(*args): """ |