diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-11-28 15:30:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-28 15:30:32 +0100 |
commit | f7194b879e22a498a573d277fbcb3b9226412f89 (patch) | |
tree | 8741786e696884fdb4524f73a04544a869163243 | |
parent | c644f6f0fd7b432b8ff18d03c9c646273774c75b (diff) | |
download | python-setuptools-git-f7194b879e22a498a573d277fbcb3b9226412f89.tar.gz |
bpo-32155: Bugfixes found by flake8 F841 warnings (#4608)
* distutils.config: Use the PyPIRCCommand.realm attribute if set
* turtledemo: wait until macOS osascript command completes to not
create a zombie process
* Tools/scripts/treesync.py: declare 'default_answer' and
'create_files' as globals to modify them with the command line
arguments. Previously, -y, -n, -f and -a options had no effect.
flake8 warning: "F841 local variable 'p' is assigned to but never
used".
-rw-r--r-- | config.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -77,7 +77,7 @@ class PyPIRCCommand(Command): # optional params for key, default in (('repository', self.DEFAULT_REPOSITORY), - ('realm', self.DEFAULT_REALM), + ('realm', realm), ('password', None)): if config.has_option(server, key): current[key] = config.get(server, key) @@ -106,7 +106,7 @@ class PyPIRCCommand(Command): 'password': config.get(server, 'password'), 'repository': repository, 'server': server, - 'realm': self.DEFAULT_REALM} + 'realm': realm} return {} |