D7676: typing: add an assertion to util.versiontuple
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Mon Dec 16 06:32:37 UTC 2019
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
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:
To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list