comparison mercurial/interfaces/util.py @ 43077:687b865b95ad

formatting: byteify all mercurial/ and hgext/ string literals Done with python3.7 contrib/byteify-strings.py -i $(hg files 'set:mercurial/**.py - mercurial/thirdparty/** + hgext/**.py - hgext/fsmonitor/pywatchman/** - mercurial/__init__.py') black -l 80 -t py33 -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/**') # skip-blame mass-reformatting only Differential Revision: https://phab.mercurial-scm.org/D6972
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 09:48:39 -0400
parents 2372284d9457
children 6000f5b25c9b
comparison
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