 |
|
|
|
Actions
|
|
[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [qmtest] qmtest 2.4: Warning: 'with' will become a reserved keyword in Python 2.6
- To: Mark Eichin <eichin@xxxxxxxxxxxxx>
- Subject: Re: [qmtest] qmtest 2.4: Warning: 'with' will become a reserved keyword in Python 2.6
- From: Stefan Seefeld <stefan@xxxxxxxxxxxxxxxx>
- Date: Fri, 25 Apr 2008 16:37:05 -0400
Mark Eichin wrote:
Caught this when installing qmtest on Ubuntu 8.04:
Setting up qmtest (2.4-3) ...
/usr/lib/python2.5/site-packages/qm/external/DocumentTemplate/DT_Util.py:212: Warning: 'with' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/qm/external/DocumentTemplate/DT_Util.py:213: Warning: 'with' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/qm/external/DocumentTemplate/DT_Util.py:213: Warning: 'with' will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/qm/external/DocumentTemplate/DT_Util.py:229: Warning: 'with' will become a reserved keyword in Python 2.6
A quick look in svn (r1024) showed that it's a named argument of the
"reorder" function, which would be trivial to change except that there
might be callers using it by name instead of position... and I
couldn't find any callers at all [which implies that there are no
tests of it either :-) ] so I don't know if it's worth fixing as opposed to
just deleting...
Everything under 'external' is an import from Zope (which I already
reluctantly updated once as some old 'regex' module was replaced by 're'.
I do have plans to replace the GUI entirely (based on Zope's TAL), so
may be Python's invalidating the above code will provide enough
incentive for me to finish that. :-)
Thanks,
Stefan
--
Stefan Seefeld
CodeSourcery
stefan@xxxxxxxxxxxxxxxx
(650) 331-3385 x718
|
|