Mercurial > hg-stable
comparison mercurial/debugcommands.py @ 43743:a9b14ef701d1
debugcommands: suppress import errors for pytype
Differential Revision: https://phab.mercurial-scm.org/D7385
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 13 Nov 2019 22:35:15 -0500 |
parents | f1dabf99db17 |
children | 23ad4f0c1578 |
comparison
equal
deleted
inserted
replaced
43742:127d46468a45 | 43743:a9b14ef701d1 |
---|---|
1559 nopure = cext or rustext | 1559 nopure = cext or rustext |
1560 if nopure: | 1560 if nopure: |
1561 err = None | 1561 err = None |
1562 try: | 1562 try: |
1563 if cext: | 1563 if cext: |
1564 from .cext import ( | 1564 from .cext import ( # pytype: disable=import-error |
1565 base85, | 1565 base85, |
1566 bdiff, | 1566 bdiff, |
1567 mpatch, | 1567 mpatch, |
1568 osutil, | 1568 osutil, |
1569 ) | 1569 ) |
1570 | 1570 |
1571 # quiet pyflakes | 1571 # quiet pyflakes |
1572 dir(bdiff), dir(mpatch), dir(base85), dir(osutil) | 1572 dir(bdiff), dir(mpatch), dir(base85), dir(osutil) |
1573 if rustext: | 1573 if rustext: |
1574 from .rustext import ( | 1574 from .rustext import ( # pytype: disable=import-error |
1575 ancestor, | 1575 ancestor, |
1576 dirstate, | 1576 dirstate, |
1577 ) | 1577 ) |
1578 | 1578 |
1579 dir(ancestor), dir(dirstate) # quiet pyflakes | 1579 dir(ancestor), dir(dirstate) # quiet pyflakes |