comparison mercurial/repoview.py @ 31221: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 20027be9f23d
children 4015dfc899bb
comparison
equal deleted inserted replaced
31220:37596c980662 31221:2faf233b88e4
298 The inheritance has to be done dynamically because `repo` can be of any 298 The inheritance has to be done dynamically because `repo` can be of any
299 subclasses of `localrepo`. Eg: `bundlerepo` or `statichttprepo`. 299 subclasses of `localrepo`. Eg: `bundlerepo` or `statichttprepo`.
300 """ 300 """
301 301
302 def __init__(self, repo, filtername): 302 def __init__(self, repo, filtername):
303 object.__setattr__(self, '_unfilteredrepo', repo) 303 object.__setattr__(self, r'_unfilteredrepo', repo)
304 object.__setattr__(self, 'filtername', filtername) 304 object.__setattr__(self, r'filtername', filtername)
305 object.__setattr__(self, '_clcachekey', None) 305 object.__setattr__(self, r'_clcachekey', None)
306 object.__setattr__(self, '_clcache', None) 306 object.__setattr__(self, r'_clcache', None)
307 307
308 # not a propertycache on purpose we shall implement a proper cache later 308 # not a propertycache on purpose we shall implement a proper cache later
309 @property 309 @property
310 def changelog(self): 310 def changelog(self):
311 """return a filtered version of the changeset 311 """return a filtered version of the changeset