repoview: convert attribute names to unicodes on Python 3
In Python 3, the attribute names must be strings i.e. unicodes.
--- 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