mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
warn about some members of the commands module
This commit is contained in:
parent
b17ad2de08
commit
3aa84a7f28
3 changed files with 20 additions and 1 deletions
|
@ -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 = ' "'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue