Checks if obj is an instance of module.class_name if loaded
(obj, module, class_name)
| 880 | |
| 881 | |
| 882 | def _safe_isinstance(obj, module, class_name): |
| 883 | """Checks if obj is an instance of module.class_name if loaded |
| 884 | """ |
| 885 | return (module in sys.modules and |
| 886 | isinstance(obj, getattr(import_module(module), class_name))) |
| 887 | |
| 888 | |
| 889 | def back_unicode_name_matches(text): |