/usr/lib64/python3.6/site-packages/zope/interface
NameSizeModeActions
common/-0755rm
__pycache__/-0755rm
adapter.py234200644editdlrm
advice.py74860644editdlrm
declarations.py315890644editdlrm
document.py39880644editdlrm
exceptions.py19990644editdlrm
interface.py205030644editdlrm
interfaces.py431230644editdlrm
registry.py232840644editdlrm
ro.py20040644editdlrm
verify.py48970644editdlrm
_compat.py16860644editdlrm
_flatten.py10560644editdlrm
_zope_interface_coptimizations.cpython-36m-x86_64-linux-gnu.so333200755editdlrm
__init__.py34100644editdlrm
Edit: /usr/lib64/python3.6/site-packages/zope/interface/_flatten.py (1056B)
############################################################################## # # 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