OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
zope
/
interface
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:14:32 AM
rwxr-xr-x
📄
__init__.py
3.33 KB
09/05/2016 06:11:08 AM
rw-r--r--
📁
__pycache__
-
05/09/2024 07:14:32 AM
rwxr-xr-x
📄
_compat.py
1.73 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
_flatten.py
1.03 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
_zope_interface_coptimizations.cpython-36m-x86_64-linux-gnu.so
30.55 KB
02/04/2018 09:30:45 AM
rw-r--r--
📄
adapter.py
22.29 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
advice.py
7.37 KB
09/05/2016 06:11:08 AM
rw-r--r--
📁
common
-
05/09/2024 07:14:32 AM
rwxr-xr-x
📄
declarations.py
30.61 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
document.py
3.89 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
exceptions.py
1.95 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
interface.py
19.92 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
interfaces.py
42.06 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
registry.py
22.49 KB
09/05/2016 06:11:08 AM
rw-r--r--
📄
ro.py
1.96 KB
09/05/2016 06:11:08 AM
rw-r--r--
📁
tests
-
05/09/2024 07:14:32 AM
rwxr-xr-x
📄
verify.py
4.62 KB
09/05/2016 06:11:08 AM
rw-r--r--
Editing: _flatten.py
Close
############################################################################## # # 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