# HG changeset patch # User Matt Harbison # Date 2019-11-21 20:31:33 # Node ID d18cf63e1dbd22c37bfd1a2f84773acf73953c77 # Parent 1d1232c0726ff0760547d580c4cb9622ac98ab8b phases: make `allphases` a list on py3 also Pytype complained that `range` doesn't support slicing, so make this a list like it was on py2. Differential Revision: https://phab.mercurial-scm.org/D7468 diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -134,7 +134,7 @@ HIDEABLE_FLAG = 32 # Phases that are hi public, draft, secret = range(3) internal = INTERNAL_FLAG | HIDEABLE_FLAG archived = HIDEABLE_FLAG -allphases = range(internal + 1) +allphases = list(range(internal + 1)) trackedphases = allphases[1:] # record phase names cmdphasenames = [b'public', b'draft', b'secret'] # known to `hg phase` command