Commits

Bob Ippolito  committed da928d2

fix __getattr__ name

  • Participants
  • Parent commits 5d73ae0
  • Branches pyobjc-ancient

Comments (0)

Files changed (1)

File Lib/objc/_pythonify.py

         self.__pyobjc_object__ = obj
         return self
 
-    def getattr(self, attr):
+    def __getattr__(self, attr):
         return getattr(self.__pyobjc_object__, attr)
 
 class OC_PythonLong(long):
         self.__pyobjc_object__ = obj
         return self
 
-    def getattr(self, attr):
+    def __getattr__(self, attr):
         return getattr(self.__pyobjc_object__, attr)
 
 class OC_PythonInt(int):
         self.__pyobjc_object__ = obj
         return self
 
-    def getattr(self, attr):
+    def __getattr__(self, attr):
         return getattr(self.__pyobjc_object__, attr)
 
 NSNumber = _objc.lookUpClass('NSNumber')