[qmtest] qmtest 2.4: Warning: 'with' will become a reserved keyword in Python 2.6
Stefan Seefeld
stefan at codesourcery.com
Fri Apr 25 20:37:05 UTC 2008
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 at codesourcery.com
(650) 331-3385 x718
More information about the qmtest
mailing list