Show More
@@ -31,11 +31,14 b' demandimport.IGNORES.update(' | |||||
31 |
|
31 | |||
32 | try: |
|
32 | try: | |
33 | # bazaar imports |
|
33 | # bazaar imports | |
|
34 | # pytype: disable=import-error | |||
34 | import breezy.bzr.bzrdir |
|
35 | import breezy.bzr.bzrdir | |
35 | import breezy.errors |
|
36 | import breezy.errors | |
36 | import breezy.revision |
|
37 | import breezy.revision | |
37 | import breezy.revisionspec |
|
38 | import breezy.revisionspec | |
38 |
|
39 | |||
|
40 | # pytype: enable=import-error | |||
|
41 | ||||
39 | bzrdir = breezy.bzr.bzrdir |
|
42 | bzrdir = breezy.bzr.bzrdir | |
40 | errors = breezy.errors |
|
43 | errors = breezy.errors | |
41 | revision = breezy.revision |
|
44 | revision = breezy.revision |
@@ -47,11 +47,14 b' NoRepo = common.NoRepo' | |||||
47 | # these bindings. |
|
47 | # these bindings. | |
48 |
|
48 | |||
49 | try: |
|
49 | try: | |
|
50 | # pytype: disable=import-error | |||
50 | import svn |
|
51 | import svn | |
51 | import svn.client |
|
52 | import svn.client | |
52 | import svn.core |
|
53 | import svn.core | |
53 | import svn.ra |
|
54 | import svn.ra | |
54 | import svn.delta |
|
55 | import svn.delta | |
|
56 | ||||
|
57 | # pytype: enable=import-error | |||
55 | from . import transport |
|
58 | from . import transport | |
56 | import warnings |
|
59 | import warnings | |
57 |
|
60 |
@@ -17,10 +17,13 b'' | |||||
17 | # You should have received a copy of the GNU General Public License |
|
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
|
18 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
19 |
|
19 | |||
|
20 | # pytype: disable=import-error | |||
20 | import svn.client |
|
21 | import svn.client | |
21 | import svn.core |
|
22 | import svn.core | |
22 | import svn.ra |
|
23 | import svn.ra | |
23 |
|
24 | |||
|
25 | # pytype: enable=import-error | |||
|
26 | ||||
24 | Pool = svn.core.Pool |
|
27 | Pool = svn.core.Pool | |
25 | SubversionException = svn.core.SubversionException |
|
28 | SubversionException = svn.core.SubversionException | |
26 |
|
29 | |||
@@ -37,7 +40,7 b' svn_config = None' | |||||
37 |
|
40 | |||
38 | def _create_auth_baton(pool): |
|
41 | def _create_auth_baton(pool): | |
39 | """Create a Subversion authentication baton.""" |
|
42 | """Create a Subversion authentication baton.""" | |
40 | import svn.client |
|
43 | import svn.client # pytype: disable=import-error | |
41 |
|
44 | |||
42 | # Give the client context baton a suite of authentication |
|
45 | # Give the client context baton a suite of authentication | |
43 | # providers.h |
|
46 | # providers.h |
@@ -9,7 +9,7 b' def get_pygit2():' | |||||
9 | global pygit2_module |
|
9 | global pygit2_module | |
10 | if pygit2_module is None: |
|
10 | if pygit2_module is None: | |
11 | try: |
|
11 | try: | |
12 | import pygit2 as pygit2_module |
|
12 | import pygit2 as pygit2_module # pytype: disable=import-error | |
13 |
|
13 | |||
14 | pygit2_module.InvalidSpecError |
|
14 | pygit2_module.InvalidSpecError | |
15 | except (ImportError, AttributeError): |
|
15 | except (ImportError, AttributeError): |
@@ -286,9 +286,12 b' def vcrcommand(name, flags, spec, helpca' | |||||
286 | import hgdemandimport |
|
286 | import hgdemandimport | |
287 |
|
287 | |||
288 | with hgdemandimport.deactivated(): |
|
288 | with hgdemandimport.deactivated(): | |
|
289 | # pytype: disable=import-error | |||
289 | import vcr as vcrmod |
|
290 | import vcr as vcrmod | |
290 | import vcr.stubs as stubs |
|
291 | import vcr.stubs as stubs | |
291 |
|
292 | |||
|
293 | # pytype: enable=import-error | |||
|
294 | ||||
292 | vcr = vcrmod.VCR( |
|
295 | vcr = vcrmod.VCR( | |
293 | serializer='json', |
|
296 | serializer='json', | |
294 | before_record_request=sanitiserequest, |
|
297 | before_record_request=sanitiserequest, |
General Comments 0
You need to be logged in to leave comments.
Login now