summaryrefslogtreecommitdiffstats
path: root/Lib/commands.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-04 19:20:00 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-04 19:20:00 (GMT)
commite1130a49cdf9626dfbdd39bc080eb2d8089de420 (patch)
tree11f4825eadc5a0e9d1697cd956e1740bbe2bbf69 /Lib/commands.py
parent06ed202ef401633908cb0a5ee54978596afc952f (diff)
downloadcpython-e1130a49cdf9626dfbdd39bc080eb2d8089de420.zip
cpython-e1130a49cdf9626dfbdd39bc080eb2d8089de420.tar.gz
cpython-e1130a49cdf9626dfbdd39bc080eb2d8089de420.tar.bz2
Added clarifying comment
Diffstat (limited to 'Lib/commands.py')
-rw-r--r--Lib/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/commands.py b/Lib/commands.py
index 428a830..6471a8d 100644
--- a/Lib/commands.py
+++ b/Lib/commands.py
@@ -40,6 +40,8 @@ def mk2arg(head, x):
# Make a shell command argument from a string.
+# Return a string beginning with a space followed by a shell-quoted
+# version of the argument.
# Two strategies: enclose in single quotes if it contains none;
# otherwise, enclose in double quotes and prefix quotable characters
# with backslash.