id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
10467	api.py - "with" gives SyntaxError building with python2.5 but ok with python2.6	dale.miller@ngc.com	bobbysmith007	I have Trac on two procecessors: \r\n * openSUSE 10.3 with Python 2.5.1 \r\n * openSUSE 11.2 with Python 2.6.2\r\n\r\nI am upgrading to Trac 1.0 and got this error.\r\n\r\nusing nevernotifyupdaterplugin_0.13-!r12113.zip\r\n\r\npython setup.py bdist_egg  (with Python 2.5.1) \r\n{{{\r\nbuild/bdist.linux-x86_64/egg/nevernotifyupdaterplugin/api.py:34: Warning: 'with' will become a reserved keyword in Python 2.6\r\n  File "build/bdist.linux-x86_64/egg/nevernotifyupdaterplugin/api.py", line 34\r\n    with self.env.db_query as db:\r\n\r\n            ^\r\nSyntaxError: invalid syntax\r\n}}}\r\n\r\nBuilds clean using Python 2.6.2\r\n\r\nFrom the Warning message - it is strange that it does not build on 2.5.1 but does on 2.6.2.  It looks like they decided not to make "with" a reserved word in python 2.6.\r\n	defect	closed	normal	NeverNotifyUpdaterPlugin	normal	fixed		dale.miller@ngc.com	1.0
