Patchwork [5,of,8] py3: fix type of attribute name in smartset.py

login
register
mail settings
Submitter Yuya Nishihara
Date Sept. 3, 2017, 2:36 p.m.
Message ID <59a3de8a667ca0720044.1504449383@mimosa>
Download mbox | patch
Permalink /patch/23644/
State Accepted
Headers show

Comments

Yuya Nishihara - Sept. 3, 2017, 2:36 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1504426493 -32400
#      Sun Sep 03 17:14:53 2017 +0900
# Node ID 59a3de8a667ca07200449a64a4716ccbd7c54a93
# Parent  4a0d22cd832998cc6211e4becf23d5e08a84058d
py3: fix type of attribute name in smartset.py

Patch

diff --git a/mercurial/smartset.py b/mercurial/smartset.py
--- a/mercurial/smartset.py
+++ b/mercurial/smartset.py
@@ -357,7 +357,7 @@  class baseset(abstractsmartset):
 
     def _fastsetop(self, other, op):
         # try to use native set operations as fast paths
-        if (type(other) is baseset and '_set' in other.__dict__ and '_set' in
+        if (type(other) is baseset and r'_set' in other.__dict__ and r'_set' in
             self.__dict__ and self._ascending is not None):
             s = baseset(data=getattr(self._set, op)(other._set),
                         istopo=self._istopo)