# HG changeset patch # User Anton Shestakov # Date 1685545376 10800 # Node ID 9dcb0084276911d9033d8e19d6fae0f9864cbfbb # Parent 720a23405fe9264bda5205f78688a5dc3e3e07ad debug: `isinstance(a, x) or isinstance(a, y)` is `isinstance(a, (x, y))` diff -r 720a23405fe9 -r 9dcb00842769 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Wed May 31 12:01:25 2023 -0300 +++ b/mercurial/debugcommands.py Wed May 31 12:02:56 2023 -0300 @@ -2642,7 +2642,7 @@ r = cmdutil.openstorage( repo.unfiltered(), b'debugnodemap', file_, pycompat.byteskwargs(opts) ) - if isinstance(r, manifest.manifestrevlog) or isinstance(r, filelog.filelog): + if isinstance(r, (manifest.manifestrevlog, filelog.filelog)): r = r._revlog if opts['dump_new']: if util.safehasattr(r.index, "nodemap_data_all"):