From: Brett Cannon Date: Fri, 9 May 2008 21:30:36 +0000 (+0000) Subject: Add a todo list to the module deletion command. X-Git-Tag: v2.6b1~548 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81673b7b63973bfe386ce6966a69d40cf9c277bc;p=python Add a todo list to the module deletion command. --- 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 31b88377ba..c24311f205 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 @@ nop command #!/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 diff --git a/Misc/TextMate/Python-Dev.tmbundle/info.plist b/Misc/TextMate/Python-Dev.tmbundle/info.plist index 2e0ea9a6ce..644bc7e5dd 100644 --- a/Misc/TextMate/Python-Dev.tmbundle/info.plist +++ b/Misc/TextMate/Python-Dev.tmbundle/info.plist @@ -22,10 +22,12 @@ Python-Dev ordering + 9519C22B-6AB8-41A1-94F6-079E0B45C147 B545BB1B-A8E1-426C-B50A-426E78B96D38 6EF151E5-7149-4F82-8796-0CC40FE589FA FD25A8DC-22DC-4ED4-B222-B943C8A9117D BF336FFF-E14D-4BF1-A156-71CF768AC034 + EDBB037F-AAE3-4512-863F-D9AA82C9E51E uuid A932ECD1-D43A-4F57-B7FB-A1CEC3B65D20