changeset 35838:f484b9d95c23

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
author Augie Fackler <augie@google.com>
date Wed, 17 Jan 2018 21:46:29 -0500
parents d8f891ec5d7d
children 9dad46c23185
files mercurial/smartset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)