smartset: set attribute using sysstr instead of bytes
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 30 Aug 2023 00:45:10 +0200
changeset 50935 f6cb926d4189
parent 50934 1339158a8a40
child 50936 93b0de7f13ca
smartset: set attribute using sysstr instead of bytes We do not needs bytes here.
mercurial/smartset.py
--- a/mercurial/smartset.py	Wed Aug 30 11:53:13 2023 +0200
+++ b/mercurial/smartset.py	Wed Aug 30 00:45:10 2023 +0200
@@ -359,10 +359,10 @@
         return s
 
     def __and__(self, other):
-        return self._fastsetop(other, b'__and__')
+        return self._fastsetop(other, '__and__')
 
     def __sub__(self, other):
-        return self._fastsetop(other, b'__sub__')
+        return self._fastsetop(other, '__sub__')
 
     def _slice(self, start, stop):
         # creating new list should be generally cheaper than iterating items