[issue2356] fixer for sys.exitfunc -> atexit

2010-03-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: Committed the 2to3 fixer in r79137. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue2356] fixer for sys.exitfunc -> atexit

2010-03-19 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: collinwinter -> benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2356] fixer for sys.exitfunc -> atexit

2010-03-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: Sean, are you referring to the warning or the 2to3 fixer? -- ___ Python tracker ___ ___ Python-bu

[issue2356] fixer for sys.exitfunc -> atexit

2010-03-19 Thread Sean Reifschneider
Sean Reifschneider added the comment: I've posted to python-dev asking for a reviewer for this, the thread is at http://mail.python.org/pipermail/python-dev/2010-March/098597.html -- nosy: +jafo ___ Python tracker

[issue2356] fixer for sys.exitfunc -> atexit

2009-07-05 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Here is an attempt to add a Py3K warning when sys.exitfunc is modified. -- nosy: +alexandre.vassalotti Added file: http://bugs.python.org/file14453/sys_exitfunc_warning.diff ___ Python tracker

[issue2356] fixer for sys.exitfunc -> atexit

2008-12-08 Thread Armin Ronacher
Armin Ronacher <[EMAIL PROTECTED]> added the comment: Since yesterday there is a handy little helper that adds imports to files which is already used for the reduce() / intern() fixers. This makes this fix a lot easier. I attached a version that does that. However the import adder is not yet a

[issue2356] fixer for sys.exitfunc -> atexit

2008-08-25 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Here's my 2to3 fixer for the cause. It always changes assignment to sys.exitfunc to atexit.register. It then inserts a "import atexit" after the module's sys import. If it can't find a sys import (that should be rare obviously :) ), it emit