On 07/06/10 16:26, Gary Poster wrote: > Hey Guilherme. +1. Thank you > > I recommend adding the import to lib/lp_sitecustomize.py, FWIW. > > Gary > > > On Jun 7, 2010, at 11:23 AM, Guilherme Salgado wrote: > >> Hi Gary, >> >> I was hoping to land my branch switching LP to use the default system >> python today, but got this failure. It only happens when the default >> system python is 2.5 and I think we can easily fix it by making whatever >> generates syte.py include an "from __future__ import with_statement" >> line. How does that sound to you?
Sorry, it's not going to be that easy. from __future__ affects the compilation unit it's found in, only. So you need to add it at the top of every file which uses a with statement. Max.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mailing list: https://launchpad.net/~launchpad-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-dev More help : https://help.launchpad.net/ListHelp

