summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-28 22:04:12 (GMT)
committerGitHub <noreply@github.com>2017-11-28 22:04:12 (GMT)
commit6979fcdc91114b1ccb16345e26734d6df4cccbc3 (patch)
treec1882e330ea0efcdceb2937c7865fb29acc9b066 /Lib
parent5f6d2bb8cfd099733e95e9fabdf72d3da3d5c13a (diff)
downloadcpython-6979fcdc91114b1ccb16345e26734d6df4cccbc3.zip
cpython-6979fcdc91114b1ccb16345e26734d6df4cccbc3.tar.gz
cpython-6979fcdc91114b1ccb16345e26734d6df4cccbc3.tar.bz2
bpo-32155: Bugfixes found by flake8 F841 warnings (#4619)
* 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".
Diffstat (limited to 'Lib')
-rw-r--r--Lib/turtledemo/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/turtledemo/__main__.py b/Lib/turtledemo/__main__.py
index 0a58332..6daf694 100644
--- a/Lib/turtledemo/__main__.py
+++ b/Lib/turtledemo/__main__.py
@@ -136,7 +136,7 @@ class DemoWindow(object):
import subprocess
# Make sure we are the currently activated OS X application
# so that our menu bar appears.
- p = subprocess.Popen(
+ subprocess.run(
[
'osascript',
'-e', 'tell application "System Events"',