Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.06; 'consistency': 0.09; 'subject:script': 0.09; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'indent': 0.16; "someone's": 0.16; 'wrote:': 0.18; 'file,': 0.19; 'cc:addr:python.org': 0.22; 'error': 0.23; 'mon,': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'rest': 0.29; 'am,': 0.29; 'dec': 0.30; 'originally': 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'received:google.com': 0.35; 'subject:?': 0.36; 'should': 0.36; 'subject:New': 0.37; 'delete': 0.39; 'other.': 0.75; 'subject:get': 0.81; 'underneath': 0.84; 'mistake': 0.91; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=fc2NeUWNH3LEK0mlxFmaGWfYNOE7RRY/lxkHdx2Ljbw=; b=L83IURMArmCbDJw/fzcVfNZxyEWNeyS1RSGt5quKGopyOJUurD6o5HrT8bG4LFUu/i EgzDUcsskwLgvixuyek1GuoDNOH65R4glzBUUXkdAnyD6b1R5oFo/PuIrqfrnpOfQlgc 0piAakCVFqoJqAFHe5iX0BDt3nMXICe8h5a66d9dEHiK8SGuTBqEiLoTWvViIogRuxry A0mImY1SWTZaiU6FD7cfNen9NDKXCAgsM/D8alHB7RexR8ex+z9gRNUNh6C4sdO2dxuQ p8Ke2LS25DeVAdHF78XwfDeFbxN+ur8aQi4SVgHlwzdT49sipzcqPqK91QqxHc3LGuz7 mwRA== MIME-Version: 1.0 X-Received: by 10.66.102.39 with SMTP id fl7mr16266567pab.43.1387145419671; Sun, 15 Dec 2013 14:10:19 -0800 (PST) In-Reply-To: References: <61009939-dc9b-4ffe-84c0-a695b96d9a2d@googlegroups.com> <5769f8c3-f09c-458a-92b6-c727bfe95656@googlegroups.com> Date: Mon, 16 Dec 2013 09:10:19 +1100 Subject: Re: New to Python, Help to get script working? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387145428 news.xs4all.nl 2834 [2001:888:2000:d::a6]:54663 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61968 On Mon, Dec 16, 2013 at 8:31 AM, Mark wrote: > I originally get an indent error on line 19, i delete the indent and i get > > ***'return outside function (Twitch.py, line 19) Good point, someone's made a mistake in that file. What you need to do is match the "output = ..." line and the "return ..." line underneath it. For consistency with the rest of the file, indent the "output" line to match the other. That should make it work. ChrisA