Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'converts': 0.07; 'tool,': 0.07; 'python': 0.09; '2to3': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; 'feasible': 0.16; 'message-id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'wrote:': 0.17; 'jan': 0.18; '>>>': 0.18; 'not,': 0.21; 'runs': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'header:X-Complaints-To:1': 0.28; 'unchanged': 0.29; "i'm": 0.29; 'subject: ?': 0.30; 'code': 0.31; 'url:python': 0.32; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'similar': 0.35; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'url:org': 0.36; 'be.': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'you.': 0.61; 'thomas': 0.62; 'received:fios.verizon.net': 0.84; 'glad': 0.86; 'wish,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: 2to6 ? Date: Mon, 02 Jul 2012 15:24:58 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341257123 news.xs4all.nl 6846 [2001:888:2000:d::a6]:34254 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24787 On 7/2/2012 11:02 AM, Thomas Heller wrote: > Am 27.06.2012 20:06, schrieb Terry Reedy: >> On 6/27/2012 10:36 AM, Thomas Heller wrote: >>> Is there a tool, similar to 2to3, which converts python2 code >>> to code using six.py, so that it runs unchanged with python2 >>> *and* python 3? >> >> Others have expressed a similar wish, but I do not know that anyone has >> actually revised 2to3 to make a 2to6, or how feasible that would be. >> > > Has nobody heard of, or even tried, modernize? > > http://pypi.python.org/pypi/modernize I had not, obviously. I'm glad you found it and hope it works for you. -- Terry Jan Reedy