/opt/imh-python/lib/python3.9/site-packages/zope/interface
NameSizeModeActions
common/-0755rm
tests/-0755rm
__pycache__/-0755rm
adapter.py366470644editdlrm
advice.py39180644editdlrm
declarations.py435120644editdlrm
document.py41390644editdlrm
exceptions.py85660644editdlrm
interface.py397700644editdlrm
interfaces.py502680644editdlrm
registry.py258120644editdlrm
ro.py245770644editdlrm
verify.py73330644editdlrm
_compat.py44130644editdlrm
_flatten.py10590644editdlrm
_zope_interface_coptimizations.c711980644editdlrm
_zope_interface_coptimizations.cpython-39-x86_64-linux-gnu.so535520755editdlrm
__init__.py34750644editdlrm
Edit: /opt/imh-python/lib/python3.9/site-packages/zope/interface/_flatten.py (1059B)
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE. # ############################################################################## """Adapter-style interface registry See Adapter class. """ from zope.interface import Declaration def _flatten(implements, include_None=0): try: r = implements.flattened() except AttributeError: if implements is None: r = () else: r = Declaration(implements).flattened() if not include_None: return r r = list(r) r.append(None) return r