diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-05-26 19:41:53 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-05-26 19:41:53 (GMT) |
commit | 3aa84a7f28659cfbed312e352775b32d2a58005b (patch) | |
tree | dbf35ab7618666913f26a95a44fd1c51d7d3c93d /Lib/commands.py | |
parent | b17ad2de08f1d31767255879664ba671cb20f000 (diff) | |
download | cpython-3aa84a7f28659cfbed312e352775b32d2a58005b.zip cpython-3aa84a7f28659cfbed312e352775b32d2a58005b.tar.gz cpython-3aa84a7f28659cfbed312e352775b32d2a58005b.tar.bz2 |
warn about some members of the commands module
Diffstat (limited to 'Lib/commands.py')
-rw-r--r-- | Lib/commands.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/commands.py b/Lib/commands.py index d19aa1a..b4e1d3c 100644 --- a/Lib/commands.py +++ b/Lib/commands.py @@ -63,6 +63,8 @@ def getstatusoutput(cmd): # Make command argument from directory and pathname (prefix space, add quotes). # def mk2arg(head, x): + from warnings import warnpy3k + warnpy3k("In 3.x, mk2arg is removed.") import os return mkarg(os.path.join(head, x)) @@ -75,6 +77,8 @@ def mk2arg(head, x): # with backslash. # def mkarg(x): + from warnings import warnpy3k + warnpy3k("in 3.x, mkarg is remove.") if '\'' not in x: return ' \'' + x + '\'' s = ' "' |