Thanks a lot... I added this to __init__.py and it works for both new and old python installations.
/Christian > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:owfs- > [EMAIL PROTECTED] On Behalf Of Darryl > Sent: den 29 december 2006 14:37 > To: owfs-developers@lists.sourceforge.net > Subject: Re: [Owfs-developers] Python warning... > > On 12/29/06, Christian Magnusson <[EMAIL PROTECTED]> wrote: > > > > Hi all python gurus... :) > > > > Installing module/ownet/python with python2.2 give this warning... > The > > same warning goes for module/swig/python/.. I guess it's not any > major > > problem that __init__.pyc isn't created, but is it possible to fix > this > > warning? > > > > > File "usr/lib/python2.2/site-packages/ownet/__init__.py", line 336 > > yield entry > > ^ > > SyntaxError: invalid syntax > > skipping byte-compilation > > "Note: In Python 2.2, the yield statement is only allowed when the > generators feature has been enabled. It will always be enabled in > Python 2.3. This __future__ import statement can be used to enable the > feature: > > from __future__ import generators" > > http://docs.python.org/ref/yield.html > > -Darryl > > ----------------------------------------------------------------------- > -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD > EV > _______________________________________________ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers