Mercurial > hg-stable
changeset 31231:2faf233b88e4
repoview: convert attribute names to unicodes on Python 3
In Python 3, the attribute names must be strings i.e. unicodes.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 08 Mar 2017 00:49:15 +0530 |
parents | 37596c980662 |
children | 56d3e0b499df |
files | mercurial/repoview.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repoview.py Wed Mar 08 00:45:19 2017 +0530 +++ b/mercurial/repoview.py Wed Mar 08 00:49:15 2017 +0530 @@ -300,10 +300,10 @@ """ def __init__(self, repo, filtername): - object.__setattr__(self, '_unfilteredrepo', repo) - object.__setattr__(self, 'filtername', filtername) - object.__setattr__(self, '_clcachekey', None) - object.__setattr__(self, '_clcache', None) + object.__setattr__(self, r'_unfilteredrepo', repo) + object.__setattr__(self, r'filtername', filtername) + object.__setattr__(self, r'_clcachekey', None) + object.__setattr__(self, r'_clcache', None) # not a propertycache on purpose we shall implement a proper cache later @property