comparison mercurial/thirdparty/zope/interface/_flatten.py @ 37178:68ee61822182

thirdparty: port zope.interface to relative imports By using relative imports, we're guaranteed to get modules vendored with Mercurial rather than other random modules that might be in sys.path. My editor strips trailing whitespace on save. So some minor source code cleanup was also performed as part of this commit. # no-check-commit because some modified lines have double newlines Differential Revision: https://phab.mercurial-scm.org/D2930
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 21 Mar 2018 19:52:30 -0700
parents 943d77fc07a3
children
comparison
equal deleted inserted replaced
37177:338367d44d34 37178:68ee61822182
13 ############################################################################## 13 ##############################################################################
14 """Adapter-style interface registry 14 """Adapter-style interface registry
15 15
16 See Adapter class. 16 See Adapter class.
17 """ 17 """
18 from zope.interface import Declaration 18
19 from __future__ import absolute_import
20
21 from .interface import Declaration
19 22
20 def _flatten(implements, include_None=0): 23 def _flatten(implements, include_None=0):
21 24
22 try: 25 try:
23 r = implements.flattened() 26 r = implements.flattened()