mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Change github-remove shebang to python3 (#11753)
This commit is contained in:
@ -1,12 +1,13 @@
|
|||||||
#! /usr/bin/env python
|
#! /usr/bin/env python3
|
||||||
import argparse, datetime, sys, subprocess
|
import argparse, datetime, sys, subprocess
|
||||||
from subprocess import call, Popen
|
from subprocess import call, Popen
|
||||||
from os.path import dirname, abspath
|
from os.path import dirname, abspath
|
||||||
|
|
||||||
raw_input = getattr(__builtins__, 'raw_input', input)
|
raw_input = getattr(__builtins__, 'raw_input', input)
|
||||||
|
|
||||||
|
|
||||||
def confirm(question):
|
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:
|
while 1:
|
||||||
sys.stdout.write(question + " [y/N] ")
|
sys.stdout.write(question + " [y/N] ")
|
||||||
choice = raw_input().lower()
|
choice = raw_input().lower()
|
||||||
|
Reference in New Issue
Block a user