Comments
Patch
@@ -3,7 +3,7 @@
import hashlib
try:
- from ..thirdparty import sha1dc
+ from ..thirdparty import sha1dc # pytype: disable=import-error
sha1 = sha1dc.sha1
except (ImportError, AttributeError):
@@ -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,
(
@@ -24,7 +24,7 @@
try:
- from ..cext import parsers as cparsers
+ from ..cext import parsers as cparsers # pytype: disable=import-error
except ImportError:
cparsers = None
@@ -269,7 +269,7 @@
if b'SSLKEYLOGFILE' in encoding.environ:
try:
- import sslkeylog
+ import sslkeylog # pytype: disable=import-error
sslkeylog.set_keylog(
pycompat.fsdecode(encoding.environ[b'SSLKEYLOGFILE'])
@@ -1622,7 +1622,7 @@
)
try:
- from . import rustext
+ from . import rustext # pytype: disable=import-error
rustext.__doc__ # trigger lazy import
except ImportError:
@@ -15,7 +15,7 @@
from .. import pycompat
if pycompat.isdarwin:
- from . import _osutil
+ from . import _osutil # pytype: disable=import-error
ffi = _osutil.ffi
lib = _osutil.lib
@@ -9,7 +9,7 @@
from ..pure.mpatch import *
from ..pure.mpatch import mpatchError # silence pyflakes
-from . import _mpatch
+from . import _mpatch # pytype: disable=import-error
ffi = _mpatch.ffi
lib = _mpatch.lib
@@ -10,7 +10,7 @@
import struct
from ..pure.bdiff import *
-from . import _bdiff
+from . import _bdiff # pytype: disable=import-error
ffi = _bdiff.ffi
lib = _bdiff.lib