# HG changeset patch # User Mads Kiilerich # Date 2016-09-25 17:21:07 # Node ID fa85c3df571bc688d5f3b4616f2072f8386c52d3 # Parent d5b837c8b4517679571f8ebf84944765f37504f9 utils: remove unnecessary import of Session diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -49,7 +49,6 @@ from kallithea.lib.vcs.exceptions import from kallithea.model import meta from kallithea.model.db import Repository, User, Ui, \ UserLog, RepoGroup, Setting, UserGroup -from kallithea.model.meta import Session from kallithea.model.repo_group import RepoGroupModel from kallithea.lib.utils2 import safe_str, safe_unicode, get_current_authuser from kallithea.lib.vcs.utils.fakemod import create_module @@ -649,7 +648,7 @@ def create_test_env(repos_test_path, con dbmanage.admin_prompt() dbmanage.create_permissions() dbmanage.populate_default_permissions() - Session().commit() + meta.Session().commit() # PART TWO make test repo log.debug('making test vcs repositories')