diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-09 21:30:36 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-09 21:30:36 (GMT) |
commit | 81673b7b63973bfe386ce6966a69d40cf9c277bc (patch) | |
tree | 296b83a08855c643fde032806befbe5e60de042a /Misc/TextMate/Python-Dev.tmbundle/Commands/2 to 3 - Module Deletion.tmCommand | |
parent | 54718dd6915c28c6b705093328cb6a4a9a88a386 (diff) | |
download | cpython-81673b7b63973bfe386ce6966a69d40cf9c277bc.zip cpython-81673b7b63973bfe386ce6966a69d40cf9c277bc.tar.gz cpython-81673b7b63973bfe386ce6966a69d40cf9c277bc.tar.bz2 |
Add a todo list to the module deletion command.
Diffstat (limited to 'Misc/TextMate/Python-Dev.tmbundle/Commands/2 to 3 - Module Deletion.tmCommand')
-rw-r--r-- | Misc/TextMate/Python-Dev.tmbundle/Commands/2 to 3 - Module Deletion.tmCommand | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/TextMate/Python-Dev.tmbundle/Commands/2 to 3 - Module Deletion.tmCommand b/Misc/TextMate/Python-Dev.tmbundle/Commands/2 to 3 - Module Deletion.tmCommand index 31b8837..c24311f 100644 --- a/Misc/TextMate/Python-Dev.tmbundle/Commands/2 to 3 - Module Deletion.tmCommand +++ b/Misc/TextMate/Python-Dev.tmbundle/Commands/2 to 3 - Module Deletion.tmCommand @@ -6,7 +6,14 @@ <string>nop</string> <key>command</key> <string>#!/usr/bin/python +"""Generate code to warn about a module's removal in Python 3.0. +XXX Not supported: +- Module's in a package do not have their full name generated. +- Package's __init__ module; should detect and use the package's name instead. +- Extension modules; need to create template. + +""" template = """from warnings import warnpy3k warnpy3k("the ${1:%s} module has been removed in Python 3.0", stacklevel=2) del warnpy3k |