changeset 46053:aad81032a128

wireprotov2: re-add tuple around `bundle2` check I stumbled upon this while looking for the current (v1) `capable` method. It looks like 9c2c77c73f23 accidentally removed the comma, turning the tuple into a simple parenthesis expression. This has not been detected since wireproto2 is not in use AFAIK. Differential Revision: https://phab.mercurial-scm.org/D9518
author Raphaël Gomès <rgomes@octobus.net>
date Fri, 04 Dec 2020 12:42:23 +0100
parents 08802795ae90
children fd47483f1645
files mercurial/httppeer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httppeer.py	Tue Dec 01 20:35:19 2020 +0100
+++ b/mercurial/httppeer.py	Fri Dec 04 12:42:23 2020 +0100
@@ -895,7 +895,7 @@
             return True
 
         # Other concepts.
-        if name in b'bundle2':
+        if name in (b'bundle2',):
             return True
 
         # Alias command-* to presence of command of that name.