Mercurial > kallithea
changeset 8049:e2c34c5fe820
vcs: drop Repository.name_unicode
It wouldn't make much sense in py3 ... and is barely used.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 25 Dec 2019 21:22:18 +0100 |
parents | 45d71d0a07f2 |
children | 804dc8c6d204 |
files | kallithea/lib/indexers/daemon.py kallithea/lib/vcs/backends/base.py |
diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/indexers/daemon.py Thu Dec 26 04:49:42 2019 +0100 +++ b/kallithea/lib/indexers/daemon.py Wed Dec 25 21:22:18 2019 +0100 @@ -110,7 +110,7 @@ self.initial = False def _get_index_revision(self, repo): - db_repo = Repository.get_by_repo_name(repo.name_unicode) + db_repo = Repository.get_by_repo_name(safe_unicode(repo.name)) landing_rev = 'tip' if db_repo: _rev_type, _rev = db_repo.landing_rev
--- a/kallithea/lib/vcs/backends/base.py Thu Dec 26 04:49:42 2019 +0100 +++ b/kallithea/lib/vcs/backends/base.py Wed Dec 25 21:22:18 2019 +0100 @@ -98,10 +98,6 @@ """ raise NotImplementedError - @property - def name_unicode(self): - return safe_unicode(self.name) - @LazyProperty def owner(self): raise NotImplementedError