##// END OF EJS Templates
py3: use raw strings while accessing class.__dict__...
Pulkit Goyal -
r32148:2cfdf524 default
parent child Browse files
Show More
@@ -257,13 +257,13 b' class basectx(object):'
257 257 return changectx(self._repo, nullrev)
258 258
259 259 def _fileinfo(self, path):
260 if '_manifest' in self.__dict__:
260 if r'_manifest' in self.__dict__:
261 261 try:
262 262 return self._manifest[path], self._manifest.flags(path)
263 263 except KeyError:
264 264 raise error.ManifestLookupError(self._node, path,
265 265 _('not found in manifest'))
266 if '_manifestdelta' in self.__dict__ or path in self.files():
266 if r'_manifestdelta' in self.__dict__ or path in self.files():
267 267 if path in self._manifestdelta:
268 268 return (self._manifestdelta[path],
269 269 self._manifestdelta.flags(path))
@@ -697,11 +697,11 b' class basefilectx(object):'
697 697
698 698 @propertycache
699 699 def _changeid(self):
700 if '_changeid' in self.__dict__:
700 if r'_changeid' in self.__dict__:
701 701 return self._changeid
702 elif '_changectx' in self.__dict__:
702 elif r'_changectx' in self.__dict__:
703 703 return self._changectx.rev()
704 elif '_descendantrev' in self.__dict__:
704 elif r'_descendantrev' in self.__dict__:
705 705 # this file context was created from a revision with a known
706 706 # descendant, we can (lazily) correct for linkrev aliases
707 707 return self._adjustlinkrev(self._descendantrev)
@@ -710,7 +710,7 b' class basefilectx(object):'
710 710
711 711 @propertycache
712 712 def _filenode(self):
713 if '_fileid' in self.__dict__:
713 if r'_fileid' in self.__dict__:
714 714 return self._filelog.lookup(self._fileid)
715 715 else:
716 716 return self._changectx.filenode(self._path)
@@ -1396,7 +1396,7 b' class committablectx(basectx):'
1396 1396 return []
1397 1397
1398 1398 def flags(self, path):
1399 if '_manifest' in self.__dict__:
1399 if r'_manifest' in self.__dict__:
1400 1400 try:
1401 1401 return self._manifest.flags(path)
1402 1402 except KeyError:
@@ -245,7 +245,7 b' class baseset(abstractsmartset):'
245 245 @util.propertycache
246 246 def _list(self):
247 247 # _list is only lazily constructed if we have _set
248 assert '_set' in self.__dict__
248 assert r'_set' in self.__dict__
249 249 return list(self._set)
250 250
251 251 def __iter__(self):
General Comments 0
You need to be logged in to leave comments. Login now