Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.python Subject: Re: How to fix those errors? Date: Sun, 16 Nov 2014 23:13:33 +0100 Organization: PointedEars Software (PES) Lines: 22 Message-ID: <1692646.8RgHztCiv6@PointedEars.de> References: <61579529.uBKFXsbbfR@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1416176013 8993 eJwNyskBwCAMA7CVcA7jrNNA9h+B6q10gr2DycjJIQkBMvrMBRVu3XV0ZTv8b2uhwPiqxHMf878PoQ== (16 Nov 2014 22:13:33 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sun, 16 Nov 2014 22:13:33 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwQkBwDAIA0BLNEBY5ZTPv4TdufKwwug0X9/4JqqxyDlwtHDm3V1/OaunJCgCD5ZlLgS0p7dnvhZF3B9qkxW8 Cancel-Lock: sha1:pLBRXBKQ5DvRe0SsWfnlBcmBw0s= X-NNTP-Posting-Host: eJwFwQkBACAIA8BKiIwnjg7pH8E7bF/OMIcbBjOnRRSrDeyWSFM6700+Y75tlQjWkdHJ6PomtBFu Xref: csiph.com comp.lang.python:80922 Thomas 'PointedEars' Lahn wrote: > Abdul Abdul wrote: >> from PIL import Image >> import os > […] >> for inputfile in filelist >> outputfile = os.path.splitext(inputfile)[0]+".jpg" >> […] > > Define “filelist” which needs to refer to an iterable value. Also, you > have forgotten to end the “for…in” statement with a semicolon, _colon_ (“:”) > and you need to unindent it one level if it is to make sense. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.