changeset 31358:4015dfc899bb

repoview: specify setattr values as native strings
author Augie Fackler <augie@google.com>
date Sun, 12 Mar 2017 00:48:06 -0500
parents c233cbda5b1e
children 73b3bee8febe
files mercurial/repoview.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/repoview.py	Sun Mar 12 03:32:38 2017 -0400
+++ b/mercurial/repoview.py	Sun Mar 12 00:48:06 2017 -0500
@@ -331,8 +331,8 @@
         if cl is None:
             cl = copy.copy(unfichangelog)
             cl.filteredrevs = revs
-            object.__setattr__(self, '_clcache', cl)
-            object.__setattr__(self, '_clcachekey', newkey)
+            object.__setattr__(self, r'_clcache', cl)
+            object.__setattr__(self, r'_clcachekey', newkey)
         return cl
 
     def unfiltered(self):