Commits

Anonymous committed 626728e

Fixed bug in addressbook.py. It was using the properties() class method invoked through an instance reference. While this used to work, it was broken and fixing PyObjC broke the addressbook.py script.

Comments (0)

Files changed (1)

pyobjc/Examples/addressbook.py

 """
     sys.exit(1)
 
-propNames = me.properties()
+propNames = AddressBook.ABPerson.properties()
 d = {}
 for i in propNames:
     d[i] = me.valueForProperty_(i)