summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-28 14:30:32 (GMT)
committerGitHub <noreply@github.com>2017-11-28 14:30:32 (GMT)
commit696b501cd11dc429a0f661adeb598bfaf89e4112 (patch)
treeb289e99f2857c2b129aa276f4647fecdcd67feff /Tools
parent4271dfd7815c05fd39b515c240050b3585bdfcd4 (diff)
downloadcpython-696b501cd11dc429a0f661adeb598bfaf89e4112.zip
cpython-696b501cd11dc429a0f661adeb598bfaf89e4112.tar.gz
cpython-696b501cd11dc429a0f661adeb598bfaf89e4112.tar.bz2
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".
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/treesync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/scripts/treesync.py b/Tools/scripts/treesync.py
index 652d394..215e2bd 100755
--- a/Tools/scripts/treesync.py
+++ b/Tools/scripts/treesync.py
@@ -33,7 +33,7 @@ write_slave = "ask"
write_master = "ask"
def main():
- global always_no, always_yes
+ global default_answer, always_no, always_yes, create_files
global create_directories, write_master, write_slave
opts, args = getopt.getopt(sys.argv[1:], "nym:s:d:f:a:")
for o, a in opts: