# HG changeset patch # User Mads Kiilerich # Date 1456874071 -3600 # Node ID f2075ef95ae20883e0284bb500bcf4316eb38a9f # Parent d21305f7f166ad9b89d21cfef43ddce069755262 unicode: Fix unicode conversion in repo2db_mapper diff -r d21305f7f166 -r f2075ef95ae2 kallithea/lib/utils.py --- a/kallithea/lib/utils.py Tue Mar 01 00:17:28 2016 +0100 +++ b/kallithea/lib/utils.py Wed Mar 02 00:14:31 2016 +0100 @@ -543,8 +543,9 @@ removed = [] # remove from database those repositories that are not in the filesystem + unicode_initial_repo_list = set(safe_unicode(name) for name in initial_repo_list) for repo in sa.query(Repository).all(): - if repo.repo_name not in initial_repo_list.keys(): + if repo.repo_name not in unicode_initial_repo_list: if remove_obsolete: log.debug("Removing non-existing repository found in db `%s`", repo.repo_name)