Show More
@@ -151,7 +151,7 def _getmtimepaths(ui): | |||||
151 | """ |
|
151 | """ | |
152 | modules = [m for n, m in extensions.extensions(ui)] |
|
152 | modules = [m for n, m in extensions.extensions(ui)] | |
153 | try: |
|
153 | try: | |
154 |
from . import __version__ # type: |
|
154 | from . import __version__ # pytype: disable=import-error | |
155 |
|
155 | |||
156 | modules.append(__version__) |
|
156 | modules.append(__version__) | |
157 | except ImportError: |
|
157 | except ImportError: |
@@ -45,7 +45,7 policy: bytes = b'allow' | |||||
45 | } |
|
45 | } | |
46 |
|
46 | |||
47 | try: |
|
47 | try: | |
48 |
from . import __modulepolicy__ # type: |
|
48 | from . import __modulepolicy__ # pytype: disable=import-error | |
49 |
|
49 | |||
50 | policy: bytes = __modulepolicy__.modulepolicy |
|
50 | policy: bytes = __modulepolicy__.modulepolicy | |
51 | except ImportError: |
|
51 | except ImportError: |
@@ -1162,7 +1162,7 def makeloggingsocket( | |||||
1162 | def version(): |
|
1162 | def version(): | |
1163 | """Return version information if available.""" |
|
1163 | """Return version information if available.""" | |
1164 | try: |
|
1164 | try: | |
1165 |
from . import __version__ # type: |
|
1165 | from . import __version__ # pytype: disable=import-error | |
1166 |
|
1166 | |||
1167 | return __version__.version |
|
1167 | return __version__.version | |
1168 | except ImportError: |
|
1168 | except ImportError: |
General Comments 0
You need to be logged in to leave comments.
Login now