Changing filenames from Greeklish => Greek (subprocess complain)
Cameron Simpson
cs at zip.com.au
Fri Jun 7 22:52:22 EDT 2013
On 07Jun2013 11:52, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= <nikos.gr33k at gmail.com> wrote:
| nikos at 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 <cs at zip.com.au>
Hello, my name is Yog-Sothoth, and I'll be your eldritch horror today.
- Heather Keith <hkeith+ at andrew.cmu.edu>
More information about the Python-list
mailing list