pytype: ignore certifi import error
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Dec 2023 21:27:49 +0100
changeset 51293 03fc41fe8aa1
parent 51292 9c5bd485fbb6
child 51294 7d3b92e8df13
pytype: ignore certifi import error This is an optional import so we should not complains about it.
mercurial/sslutil.py
--- a/mercurial/sslutil.py	Tue Dec 19 21:26:30 2023 +0100
+++ b/mercurial/sslutil.py	Tue Dec 19 21:27:49 2023 +0100
@@ -787,7 +787,7 @@
     # The "certifi" Python package provides certificates. If it is installed
     # and usable, assume the user intends it to be used and use it.
     try:
-        import certifi
+        import certifi  # pytype: disable=import-error
 
         certs = certifi.where()
         if os.path.exists(certs):