title: "Expected::" error in python
body: <p>beginning to learn python, so sorry if this is elementary. Why is the error "Expected::" calls by this code:</p>
  
  <pre><code>cur.execute('''SELECT error FROM WT_enercon_bawnmore WHERE error &lt;&gt; 0;''')
  count = 0
  for key in d:
      for i in cur:
          if key = i:
              count += 1
      d[key] = count
  </code></pre>
  
  <p>Eclipse is indicating that the fifth line is the route of the problem.
  Thanks in advance.</p>