# HG changeset patch # User Martin von Zweigbergk # Date 2019-12-05 16:59:23 # Node ID 0f6782df11005fbead71a48a87092c9cbe3736ea # Parent d3f7bdc905fb604c59d8c096e395a0e4af68a9fe exchange: replace a "not x in ys" by more Pythonic "x not in ys" Found by one of our (Google-)internal tools. Differential Revision: https://phab.mercurial-scm.org/D7546 diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -2577,7 +2577,7 @@ def _getbundlephasespart( ): """add phase heads part to the requested bundle""" if kwargs.get('phases', False): - if not b2caps or not b'heads' in b2caps.get(b'phases'): + if not b2caps or b'heads' not in b2caps.get(b'phases'): raise error.Abort(_(b'no common phases exchange method')) if heads is None: heads = repo.heads()