From: Neal N. <nno...@us...> - 2005-11-01 06:33:31
|
Update of /cvsroot/pychecker/pychecker/pychecker In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10667/pychecker Modified Files: CodeChecks.py Log Message: Handle a few cases where doing addition with user strings caused us to lose warning.level and blow up Index: CodeChecks.py =================================================================== RCS file: /cvsroot/pychecker/pychecker/pychecker/CodeChecks.py,v retrieving revision 1.164 retrieving revision 1.165 diff -C2 -d -r1.164 -r1.165 *** CodeChecks.py 1 Nov 2005 06:27:14 -0000 1.164 --- CodeChecks.py 1 Nov 2005 06:33:18 -0000 1.165 *************** *** 501,505 **** msg = msgs.USING_DEPRECATED_MODULE % tmpFromName if undeprecated: ! msg = msg + msgs.USE_INSTEAD % undeprecated code.addWarning(msg) --- 501,505 ---- msg = msgs.USING_DEPRECATED_MODULE % tmpFromName if undeprecated: ! msg.data = msg.data + msgs.USE_INSTEAD % undeprecated code.addWarning(msg) *************** *** 573,578 **** orig_section = section if not section: ! code.addWarning(msgs.INVALID_FORMAT % orig_section + ! ' (end of format string)') continue --- 573,579 ---- orig_section = section if not section: ! w = msgs.INVALID_FORMAT % orig_section ! w.data = w.data + ' (end of format string)' ! code.addWarning(w) continue *************** *** 1183,1187 **** msg = msgs.USING_DEPRECATED_ATTR % name if undeprecated: ! msg = msg + msgs.USE_INSTEAD % undeprecated code.addWarning(msg) --- 1184,1188 ---- msg = msgs.USING_DEPRECATED_ATTR % name if undeprecated: ! msg.data = msg.data + msgs.USE_INSTEAD % undeprecated code.addWarning(msg) |