Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/smartset.py @ 34087:01c9700fbf9f
py3: fix type of attribute name in smartset.py
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 03 Sep 2017 17:14:53 +0900 |
parents | 247bae545061 |
children | 12a46ad67a3c |
comparison
equal
deleted
inserted
replaced
34086:e18119b1ad5d | 34087:01c9700fbf9f |
---|---|
355 return self._asclist[0] | 355 return self._asclist[0] |
356 return None | 356 return None |
357 | 357 |
358 def _fastsetop(self, other, op): | 358 def _fastsetop(self, other, op): |
359 # try to use native set operations as fast paths | 359 # try to use native set operations as fast paths |
360 if (type(other) is baseset and '_set' in other.__dict__ and '_set' in | 360 if (type(other) is baseset and r'_set' in other.__dict__ and r'_set' in |
361 self.__dict__ and self._ascending is not None): | 361 self.__dict__ and self._ascending is not None): |
362 s = baseset(data=getattr(self._set, op)(other._set), | 362 s = baseset(data=getattr(self._set, op)(other._set), |
363 istopo=self._istopo) | 363 istopo=self._istopo) |
364 s._ascending = self._ascending | 364 s._ascending = self._ascending |
365 else: | 365 else: |