mercurial/interfaces/util.py
changeset 43077 687b865b95ad
parent 43076 2372284d9457
child 48875 6000f5b25c9b
equal deleted inserted replaced
43076:2372284d9457 43077:687b865b95ad
    11 
    11 
    12 from __future__ import absolute_import
    12 from __future__ import absolute_import
    13 
    13 
    14 from .. import encoding
    14 from .. import encoding
    15 
    15 
    16 if encoding.environ.get('HGREALINTERFACES'):
    16 if encoding.environ.get(b'HGREALINTERFACES'):
    17     from ..thirdparty.zope import interface as zi
    17     from ..thirdparty.zope import interface as zi
    18 
    18 
    19     Attribute = zi.Attribute
    19     Attribute = zi.Attribute
    20     Interface = zi.Interface
    20     Interface = zi.Interface
    21     implementer = zi.implementer
    21     implementer = zi.implementer
    22 else:
    22 else:
    23 
    23 
    24     class Attribute(object):
    24     class Attribute(object):
    25         def __init__(self, __name__, __doc__=''):
    25         def __init__(self, __name__, __doc__=b''):
    26             pass
    26             pass
    27 
    27 
    28     class Interface(object):
    28     class Interface(object):
    29         def __init__(
    29         def __init__(
    30             self, name, bases=(), attrs=None, __doc__=None, __module__=None
    30             self, name, bases=(), attrs=None, __doc__=None, __module__=None