Re: Cheetah completely borked under python 2.7?
Mike Bonnet <[email protected]> Tue, 19 Oct 2010 16:32:18 -0400
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Organization | Red Hat, Inc. |
| Message-ID | <[email protected]> |
On 10/12/2010 09:01 AM, Jon Siddle wrote: > There are 35 errors caused by a python version check which breaks > under 2.7 > > See attached for a simple patch to fix it. > > More details about the change in 2.7 which broke it here: > http://bugs.python.org/issue4285 Great job tracking this down Jon. I've applied your patch and rebuilt Cheetah for Fedora: http://pkgs.fedoraproject.org/gitweb/?p=python-cheetah.git;a=commit;h=HEAD http://koji.fedoraproject.org/koji/buildinfo?buildID=200978 cheetah-2.4-python2.7-compat.patch also turns off convertEOLs on 3 tests that were failing because of changes to the compile(), as you noted in your other message. Not sure if there's a better way to handle it, but for now this allows the tests to pass. The two other patches fix a warning from setuptools, and cause "cheetah test" to return with a non-zero exit code when tests are failing. Worth picking up for the next release? Thanks, Mike > Thanks > > Jon > On 04/10/10 21:26, Mike Bonnet wrote: >> I just built Cheetah and ran the unit tests under python 2.7 (Fedora 14 >> Beta) and it spewed a ton of errors. I haven't had a chance to look >> into them yet, but they look pretty concerning. Has anyone seen these >> problems yet? Are we going to need serious refactoring to make Cheetah >> work under python 2.7? >> >> The log is available here: >> >> http://people.redhat.com/mikeb/cheetah-2.4.3-python27-tests.log >> >> I'll start looking into possible fixes when I can. >> >> Thanks, >> Mike >> >> ------------------------------------------------------------------------------ >> >> Virtualization is moving to the mainstream and overtaking non-virtualized >> environment for deploying applications. Does it make network security >> easier or more difficult to achieve? Read this whitepaper to separate the >> two and get a better understanding. >> http://p.sf.net/sfu/hp-phase2-d2d >> _______________________________________________ >> Cheetahtemplate-discuss mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > > > > _______________________________________________ > Cheetahtemplate-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev