On 07Jun2013 11:52, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= 
<nikos.gr...@gmail.com> wrote:
| ni...@superhost.gr [~/www/cgi-bin]# [Fri Jun 07 21:49:33 2013] [error] 
[client 79.103.41.173]   File "/home/nikos/public_html/cgi-bin/files.py", line 
81
| [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173]     if( flag == 
'greek' )
| [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173]                     
    ^
| [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173] SyntaxError: 
invalid syntax
| [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173] Premature end of 
script headers: files.py
| -------------------------------
| i dont know why that if statement errors.

Python statements that continue (if, while, try etc) end in a colon, so:

  if flag == 'greek':

Cheers,
-- 
Cameron Simpson <c...@zip.com.au>

Hello, my name is Yog-Sothoth, and I'll be your eldritch horror today.
        - Heather Keith <hkei...@andrew.cmu.edu>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to