📁 File Manager Pro
v10.0.3 | PHP: 7.4.15
Server: Apache/2.4.25 (Debian)
2026-07-02 04:48:35
📂
/ (Root)
/
usr
/
lib
/
python3
/
dist-packages
/
mock
/
tests
📍 /usr/lib/python3/dist-packages/mock/tests
🔄 Refresh
✏️
Editing: support.py
Read Only
import sys info = sys.version_info import unittest2 try: callable = callable except NameError: def callable(obj): return hasattr(obj, '__call__') with_available = sys.version_info[:2] >= (2, 5) def is_instance(obj, klass): """Version of is_instance that doesn't access __class__""" return issubclass(type(obj), klass) class SomeClass(object): class_attribute = None def wibble(self): pass class X(object): pass try: next = next except NameError: def next(obj): return obj.next()
💾 Save Changes
❌ Cancel