Source

pyobjc / pyobjc-core / Lib / objc / _lazyimport.py

Diff from to

pyobjc-core/Lib/objc/_lazyimport.py

                 bundle_path=frameworkPath,
                 scan_classes=False)
 
-        return bundle
+    return bundle
 
 class GetAttrMap (object):
     __slots__ = ('_container',)
                         self.__dict__[name] = v
                 continue
 
-            if tollfree:
-                for nm in tollfree.split(','):
-                    try:
-                        objc.lookUpClass(nm)
-                    except objc.error:
-                        pass
-                    else:
-                        tollfree = nm
-                        break
-
-                try:
-                    v = objc.registerCFSignature(name, type, func(), tollfree)
-                except objc.nosuchclass_error:
-                    v = objc.registerCFSignature(name, type, func())
-            else:
-                v = objc.registerCFSignature(name, type, func())
+            v = objc.registerCFSignature(name, type, func())
             if v is not None:
                 self.__dict__[name] = v