Commit f7194b87 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

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".
parent c644f6f0
......@@ -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 {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment