Patchwork D7676: typing: add an assertion to util.versiontuple

login
register
mail settings
Submitter phabricator
Date Dec. 16, 2019, 6:32 a.m.
Message ID <73b97300a4de71c0a33be9417a6a2e4a@localhost.localdomain>
Download mbox | patch
Permalink /patch/43861/
State Not Applicable
Headers show

Comments

phabricator - Dec. 16, 2019, 6:32 a.m.
Closed by commit rHGa21a6dad4b38: typing: add an assertion to util.versiontuple (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7676?vs=18740&id=18751

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7676/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7676

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1173,6 +1173,8 @@ 
     else:
         vparts, extra = m.group(1), None
 
+    assert vparts is not None  # help pytype
+
     vints = []
     for i in vparts.split(b'.'):
         try: