Changeset 50710 in vbox for trunk/src/libs/xpcom18a4/python/server
- Timestamp:
- Mar 6, 2014 1:08:28 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92674
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/server/loader.py
r11746 r50710 58 58 comps = [] 59 59 for name, object in py_module.__dict__.items(): 60 if type(object)==types.ClassType and \ 61 _has_good_attr(object, "_com_interfaces_") and \ 62 _has_good_attr(object, "_reg_clsid_") and \ 63 _has_good_attr(object, "_reg_contractid_"): 64 comps.append(object) 60 try: 61 if (type(object) == types.ClassType or issubclass(object, object)) and \ 62 _has_good_attr(object, "_com_interfaces_") and \ 63 _has_good_attr(object, "_reg_clsid_") and \ 64 _has_good_attr(object, "_reg_contractid_"): 65 comps.append(object) 66 except TypeError: 67 # The issubclass call raises TypeError when the obj is not a class. 68 pass; 65 69 return comps 66 70
Note:
See TracChangeset
for help on using the changeset viewer.