Mercurial > public > mercurial-scm > hg-stable
diff mercurial/urllibcompat.py @ 46413:521ac0d7047f stable
typing: disable import error warnings that are already handled
I'm assuming that the cffi ones are handled somewhere, but the others definitely
are.
Differential Revision: https://phab.mercurial-scm.org/D10207
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 13 Mar 2021 00:38:59 -0500 |
parents | 89a2afe31e82 |
children | 6000f5b25c9b |
line wrap: on
line diff
--- a/mercurial/urllibcompat.py Fri Mar 12 17:22:35 2021 -0500 +++ b/mercurial/urllibcompat.py Sat Mar 13 00:38:59 2021 -0500 @@ -148,6 +148,7 @@ else: + # pytype: disable=import-error import BaseHTTPServer import CGIHTTPServer import SimpleHTTPServer @@ -155,6 +156,8 @@ import urllib import urlparse + # pytype: enable=import-error + urlreq._registeraliases( urllib, (