Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.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.086 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'to:name:python list': 0.09; 'written': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'compliant': 0.16; 'pep8': 0.16; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'badly': 0.22; 'thu,': 0.22; '(and': 0.22; 'message- id:@mail.gmail.com': 0.28; '(so': 0.31; 'one)': 0.31; 'solved': 0.31; 'does': 0.31; 'anyone': 0.31; 'to:addr:python-list': 0.32; "i've": 0.33; 'there': 0.35; 'tool': 0.35; 'subject: ?': 0.35; 'case': 0.37; 'useful': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'help': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; '2011': 0.62; 'received:74.125.83': 0.69; 'url:php': 0.79; '11:47': 0.84; 'url:script': 0.84; 'url:scripts': 0.84 MIME-Version: 1.0 In-Reply-To: References: From: James Mills Date: Thu, 14 Apr 2011 12:01:47 +1000 Subject: Re: automated pep8 reformatter ? To: python list Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 19 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302746536 news.xs4all.nl 41103 [::ffff:82.94.164.166]:37420 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3149 On Thu, Apr 14, 2011 at 11:47 AM, James Mills wrote: > Does anyone know of a tool that will help with > reformatting badly written code to be pep8 compliant ? > > a 2to3 for pep8 ? In case there is no such tool (And I don't have the time to write one) I've found this to be really useful (so far): http://www.vim.org/scripts/script.php?script_id=2914 cheers James -- -- James Mills -- -- "Problems are solved by method"