Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.071 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'syntax': 0.04; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'hint:': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'syntaxerror:': 0.16; 'with?': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'errors.': 0.24; 'now?': 0.24; 'script': 0.25; 'skip:" 40': 0.26; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'statement': 0.30; 'skip:7 10': 0.31; 'file': 0.32; 'skip:- 30': 0.32; 'url:python': 0.33; 'not.': 0.33; 'noticed': 0.34; 'subject:from': 0.34; 'subject: (': 0.35; 'received:84': 0.35; 'url:org': 0.36; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'read': 0.60; 'course': 0.61; 'love': 0.65; 'dont': 0.67; 'header:Reply-To:1': 0.67; 'invalid': 0.68; 'reply-to:no real name:2**0': 0.71; '8bit%:100': 0.72; 'premature': 0.84; 'reply-to:addr:python.org': 0.84; '2013': 0.98 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=RZapVTdv c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=oyR3mlnJdzkA:10 a=AdgiQdVXbpoA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=uw23S90zXSUA:10 a=pGLkceISAAAA:8 a=KTu4upuPGvGOej3ufbgA:9 a=QEXdDO2ut3YA:10 a=AFCroXqDtgoA:10 a=MSl-tDqOz04A:10 X-AUTH: mrabarnett:2500 Date: Fri, 07 Jun 2013 21:45:29 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain) References: <51B1842A.30104@gmail.com> <7d8da6c9-fb92-4329-b207-4280f29ba664@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370637932 news.xs4all.nl 15944 [2001:888:2000:d::a6]:55344 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47351 On 07/06/2013 20:31, Zero Piraeus wrote: > : > > On 7 June 2013 14:52, Νικόλαος Κούρας wrote: > 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. > > Oh for f... READ SOME DOCUMENTATION, FOR THE LOVE OF BOB!!! READ YOUR > OWN EFFING CODE! > > Look at this: > > http://docs.python.org/2/tutorial/controlflow.html > > Read it now? Of course not. Go away and read it. > > Now have you read it? GO AND READ IT. > > What does an if statement end with? Hint: yep, that's it. > Have you noticed how the line in the traceback doesn't match the line in the post?