Index: lnt/trunk/lnt/formats/__init__.py =================================================================== --- lnt/trunk/lnt/formats/__init__.py +++ lnt/trunk/lnt/formats/__init__.py @@ -12,7 +12,7 @@ formats = [plist, json] formats_by_name = dict((f['name'], f) for f in formats) -format_names = formats_by_name.keys() +format_names = list(formats_by_name.keys()) def get_format(name): Index: lnt/trunk/lnt/lnttool/create.py =================================================================== --- lnt/trunk/lnt/lnttool/create.py +++ lnt/trunk/lnt/lnttool/create.py @@ -160,7 +160,7 @@ wsgi_file = open(wsgi_path, 'w') wsgi_file.write(kWSGITemplate % locals()) wsgi_file.close() - os.chmod(wsgi_path, 0755) + os.chmod(wsgi_path, 0o755) # Execute an upgrade on the database to initialize the schema. lnt.server.db.migrate.update_path(db_path) Index: lnt/trunk/lnt/server/instance.py =================================================================== --- lnt/trunk/lnt/server/instance.py +++ lnt/trunk/lnt/server/instance.py @@ -54,7 +54,7 @@ raise Exception("Invalid config: %r" % config_path) config_data = {} - exec open(config_path) in config_data + exec(open(config_path).read(), config_data) config = lnt.server.config.Config.from_data(config_path, config_data) return Instance(config_path, config, tmpdir) Index: lnt/trunk/lnt/testing/__init__.py =================================================================== --- lnt/trunk/lnt/testing/__init__.py +++ lnt/trunk/lnt/testing/__init__.py @@ -182,7 +182,7 @@ self.name = str(name) self.info = dict((str(key), str(value)) for key, value in info.items()) - self.data = map(conv_f, data) + self.data = list(map(conv_f, data)) def render(self): """Return info from this instance in a dictionary that respects