D1897: smartset: use native string when peeking in __dict__

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Feb 1 20:39:34 UTC 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0851cbd422ae: smartset: use native string when peeking in __dict__ (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1897?vs=4887&id=5066

REVISION DETAIL
  https://phab.mercurial-scm.org/D1897

AFFECTED FILES
  mercurial/smartset.py

CHANGE DETAILS

diff --git a/mercurial/smartset.py b/mercurial/smartset.py
--- a/mercurial/smartset.py
+++ b/mercurial/smartset.py
@@ -306,7 +306,7 @@
         self._istopo = False
 
     def __len__(self):
-        if '_list' in self.__dict__:
+        if r'_list' in self.__dict__:
             return len(self._list)
         else:
             return len(self._set)



To: durin42, #hg-reviewers, pulkit, indygreg
Cc: pulkit, mercurial-devel


More information about the Mercurial-devel mailing list