title: Searching for events in an iCal formatted file in Python
body: <p>I want to look at only events that apply to today in an iCal file. This is my code:</p>
  
  <pre><code>from icalendar import Calendar, Event
  from datetime import datetime
  
  g = open('reachcalendar.ics','rb')
  cal = Calendar.from_ical(g.read())
  
  for component in cal.walk():
    if component.name == "VEVENT":
      if component.get('dtstart').date() == datetime.today().date()
        print component.get('summary')
        print component.get('dtstart').dt
  
  g.close()
  </code></pre>
  
  <p>But this is resulting in an invalid syntax:</p>
  
  <pre><code>  File "today.py", line 9
      if component.get('dtstart').date() == datetime.today().date()
                                                                     ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>What am I doing wrong?</p>