Add a todo list to the module deletion command.
This commit is contained in:
parent
54718dd691
commit
81673b7b63
|
@ -6,7 +6,14 @@
|
||||||
<string>nop</string>
|
<string>nop</string>
|
||||||
<key>command</key>
|
<key>command</key>
|
||||||
<string>#!/usr/bin/python
|
<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
|
template = """from warnings import warnpy3k
|
||||||
warnpy3k("the ${1:%s} module has been removed in Python 3.0", stacklevel=2)
|
warnpy3k("the ${1:%s} module has been removed in Python 3.0", stacklevel=2)
|
||||||
del warnpy3k
|
del warnpy3k
|
||||||
|
|
|
@ -22,10 +22,12 @@
|
||||||
<string>Python-Dev</string>
|
<string>Python-Dev</string>
|
||||||
<key>ordering</key>
|
<key>ordering</key>
|
||||||
<array>
|
<array>
|
||||||
|
<string>9519C22B-6AB8-41A1-94F6-079E0B45C147</string>
|
||||||
<string>B545BB1B-A8E1-426C-B50A-426E78B96D38</string>
|
<string>B545BB1B-A8E1-426C-B50A-426E78B96D38</string>
|
||||||
<string>6EF151E5-7149-4F82-8796-0CC40FE589FA</string>
|
<string>6EF151E5-7149-4F82-8796-0CC40FE589FA</string>
|
||||||
<string>FD25A8DC-22DC-4ED4-B222-B943C8A9117D</string>
|
<string>FD25A8DC-22DC-4ED4-B222-B943C8A9117D</string>
|
||||||
<string>BF336FFF-E14D-4BF1-A156-71CF768AC034</string>
|
<string>BF336FFF-E14D-4BF1-A156-71CF768AC034</string>
|
||||||
|
<string>EDBB037F-AAE3-4512-863F-D9AA82C9E51E</string>
|
||||||
</array>
|
</array>
|
||||||
<key>uuid</key>
|
<key>uuid</key>
|
||||||
<string>A932ECD1-D43A-4F57-B7FB-A1CEC3B65D20</string>
|
<string>A932ECD1-D43A-4F57-B7FB-A1CEC3B65D20</string>
|
||||||
|
|
Loading…
Reference in New Issue