repoview: convert attribute names to unicodes on Python 3
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 08 Mar 2017 00:49:15 +0530
changeset 31221 2faf233b88e4
parent 31220 37596c980662
child 31222 56d3e0b499df
repoview: convert attribute names to unicodes on Python 3 In Python 3, the attribute names must be strings i.e. unicodes.
mercurial/repoview.py
--- 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