Commits

Ronald Oussoren  committed 2b5930a

Examples cleanup

  • Participants
  • Parent commits 3ce15db

Comments (0)

Files changed (3)

File pyobjc-framework-AddressBook/Examples/Plugins/Python Address Label/plugin.py

 and then copy it to  '~/Library/Address\ Book\ Plug-Ins' (this folder may
 not exist yet.
 """
-from __future__ import unicode_literals
 from AddressBook import kABAddressProperty
 from AppKit import NSObject, NSNull, NSStringPboardType
 

File pyobjc-framework-AddressBook/Examples/Scripts/exportBook.py

-#!/usr/bin/env python2.3
+#!/usr/bin/env python3
 """
 This script gives a short example on how to use the addressbook framework,
 it creates an CSV file containing information about all entries in the
         for row in bookFields(book, [ f[1] for f in FIELD_NAMES]):
             csvStream.writerow(row)
 
-        fp.close()
-
 if __name__ == "__main__":
     main()

File pyobjc-framework-AddressBook/Examples/Scripts/meInC.py

-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 This script prints some information on 'My Card'  record using
 the AddressBook C API.