comparison mercurial/interfaces/util.py @ 48875:6000f5b25c9b

py2: remove simple from __future__ statements These were needed for Python 2 support. Now that our linter no longer mandates these, we can start deleting them. Differential Revision: https://phab.mercurial-scm.org/D12254
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 03 Mar 2022 17:34:00 +0100
parents 687b865b95ad
children 642e31cb55f0
comparison
equal deleted inserted replaced
48874:af0b21d5a930 48875:6000f5b25c9b
7 7
8 # zope.interface imposes a run-time cost due to module import overhead and 8 # zope.interface imposes a run-time cost due to module import overhead and
9 # bookkeeping for declaring interfaces. So, we use stubs for various 9 # bookkeeping for declaring interfaces. So, we use stubs for various
10 # zope.interface primitives unless instructed otherwise. 10 # zope.interface primitives unless instructed otherwise.
11 11
12 from __future__ import absolute_import
13 12
14 from .. import encoding 13 from .. import encoding
15 14
16 if encoding.environ.get(b'HGREALINTERFACES'): 15 if encoding.environ.get(b'HGREALINTERFACES'):
17 from ..thirdparty.zope import interface as zi 16 from ..thirdparty.zope import interface as zi