smartset: use native string when peeking in __dict__
authorAugie Fackler <augie@google.com>
Wed, 17 Jan 2018 21:46:29 -0500
changeset 35838 f484b9d95c23
parent 35837 d8f891ec5d7d
child 35839 9dad46c23185
smartset: use native string when peeking in __dict__ # skip-blame just an r prefix on a string literal Differential Revision: https://phab.mercurial-scm.org/D1897
mercurial/smartset.py
--- a/mercurial/smartset.py	Wed Jan 17 21:46:09 2018 -0500
+++ b/mercurial/smartset.py	Wed Jan 17 21:46:29 2018 -0500
@@ -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)