From ee7fa1e1cb9f693bf76a9d223894d28cae808ef8 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 1 Jun 2020 11:24:49 -0500 Subject: [PATCH] Change github-remove shebang to python3 (#11753) --- scripts/github-remove | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/github-remove b/scripts/github-remove index 186371de89..91e100acfc 100755 --- a/scripts/github-remove +++ b/scripts/github-remove @@ -1,12 +1,13 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import argparse, datetime, sys, subprocess from subprocess import call, Popen from os.path import dirname, abspath raw_input = getattr(__builtins__, 'raw_input', input) + def confirm(question): - valid = {"yes":True, "y":True, "ye":True, "no":False, "n":False} + valid = {"yes": True, "y": True, "ye": True, "no": False, "n": False} while 1: sys.stdout.write(question + " [y/N] ") choice = raw_input().lower()