1. Ronald Oussoren
  2. pyobjc

Commits

Ronald Oussoren  committed 9518beb

Tweak example code for py3k

  • Participants
  • Parent commits 3a18d25
  • Branches core-cleanup

Comments (0)

Files changed (1)

File pyobjc-framework-CalendarStore/Examples/Scripts/add_wwdc_to_calendar.py

View file
  • Ignore whitespace
 
 store = CalCalendarStore.defaultCalendarStore()
 for cal in store.calendars():
-    if cal._.title == u"Work":
+    if cal._.title == "Work":
         event = CalEvent.event()
         event._.calendar = cal
         event._.title = "WWDC 2009"