X7ROOT File Manager
Current Path:
/usr/lib64/python2.7/site-packages/zope/interface
usr
/
lib64
/
python2.7
/
site-packages
/
zope
/
interface
/
📁
..
📄
__init__.py
(3.29 KB)
📄
__init__.pyc
(2.64 KB)
📄
__init__.pyo
(2.64 KB)
📄
_compat.py
(1.82 KB)
📄
_compat.pyc
(2.21 KB)
📄
_compat.pyo
(2.21 KB)
📄
_flatten.py
(1.03 KB)
📄
_flatten.pyc
(698 B)
📄
_flatten.pyo
(698 B)
📄
_zope_interface_coptimizations.so
(31.73 KB)
📄
adapter.py
(22.51 KB)
📄
adapter.pyc
(18.89 KB)
📄
adapter.pyo
(18.89 KB)
📄
advice.py
(7.37 KB)
📄
advice.pyc
(5.42 KB)
📄
advice.pyo
(5.38 KB)
📁
common
📄
declarations.py
(27.17 KB)
📄
declarations.pyc
(24.34 KB)
📄
declarations.pyo
(24.34 KB)
📄
document.py
(3.38 KB)
📄
document.pyc
(2.72 KB)
📄
document.pyo
(2.72 KB)
📄
exceptions.py
(1.95 KB)
📄
exceptions.pyc
(3.21 KB)
📄
exceptions.pyo
(3.21 KB)
📄
interface.py
(20.63 KB)
📄
interface.pyc
(22.51 KB)
📄
interface.pyo
(22.51 KB)
📄
interfaces.py
(42.1 KB)
📄
interfaces.pyc
(54.78 KB)
📄
interfaces.pyo
(54.78 KB)
📄
registry.py
(18.18 KB)
📄
registry.pyc
(19.77 KB)
📄
registry.pyo
(19.72 KB)
📄
ro.py
(2.07 KB)
📄
ro.pyc
(1.59 KB)
📄
ro.pyo
(1.59 KB)
📄
verify.py
(4.62 KB)
📄
verify.pyc
(3.17 KB)
📄
verify.pyo
(3.17 KB)
Editing: _compat.py
############################################################################## # # Copyright (c) 2006 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. # ############################################################################## """Basic components support """ import sys import types if sys.version_info[0] < 3: #pragma NO COVER def _u(s): return unicode(s, 'unicode_escape') def _normalize_name(name): if isinstance(name, basestring): return unicode(name) raise TypeError("name must be a regular or unicode string") CLASS_TYPES = (type, types.ClassType) STRING_TYPES = (basestring,) _BUILTINS = '__builtin__' PYTHON3 = False PYTHON2 = True else: #pragma NO COVER def _u(s): return s def _normalize_name(name): if isinstance(name, bytes): name = str(name, 'ascii') if isinstance(name, str): return name raise TypeError("name must be a string or ASCII-only bytes") CLASS_TYPES = (type,) STRING_TYPES = (str,) _BUILTINS = 'builtins' PYTHON3 = True PYTHON2 = False def _skip_under_py3k(test_method): #pragma NO COVER if sys.version_info[0] < 3: return test_method def _dummy(*args): pass return _dummy def _skip_under_py2(test_method): #pragma NO COVER if sys.version_info[0] > 2: return test_method def _dummy(*args): pass return _dummy
Upload File
Create Folder