diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-23 12:30:35 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-23 12:30:35 +0200 |
commit | c0f01d9eb22ed81c49d8c9fbfd49b6d4c4020310 (patch) | |
tree | 0cd6281ec236943f3b1831af10b05ba694d6a790 /Lib/distutils/cmd.py | |
parent | 33a6e5e5b5f5b6f6e08b83e2a1136c9b4285d5cc (diff) | |
parent | 06100f2d9d19f6d7eb5440aa1edff598d24a2775 (diff) | |
download | cpython-c0f01d9eb22ed81c49d8c9fbfd49b6d4c4020310.tar.gz |
Issue #26729: Fixed __text_signature__ for sorted().
Patch by Erik Welch.
Diffstat (limited to 'Lib/distutils/cmd.py')
-rw-r--r-- | Lib/distutils/cmd.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py index c89d5efc45..939f795945 100644 --- a/Lib/distutils/cmd.py +++ b/Lib/distutils/cmd.py @@ -221,7 +221,7 @@ class Command: self._ensure_stringlike(option, "string", default) def ensure_string_list(self, option): - """Ensure that 'option' is a list of strings. If 'option' is + r"""Ensure that 'option' is a list of strings. If 'option' is currently a string, we split it either on /,\s*/ or /\s+/, so "foo bar baz", "foo,bar,baz", and "foo, bar baz" all become ["foo", "bar", "baz"]. @@ -329,8 +329,7 @@ class Command: # -- External world manipulation ----------------------------------- def warn(self, msg): - log.warn("warning: %s: %s\n" % - (self.get_command_name(), msg)) + log.warn("warning: %s: %s\n", self.get_command_name(), msg) def execute(self, func, args, msg=None, level=1): util.execute(func, args, msg, dry_run=self.dry_run) |