From 25491e0d6d36cc76b5164b341b4c06d4176f8ffa Mon Sep 17 00:00:00 2001 From: Sam Sloniker Date: Fri, 8 Apr 2022 10:05:42 -0700 Subject: [PATCH] Format with black --- netrun.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/netrun.py b/netrun.py index ee26707..af8d268 100644 --- a/netrun.py +++ b/netrun.py @@ -6,13 +6,15 @@ url = sys.argv[1] content = requests.get(url).content -subprocess.run(['less'], input=content) +subprocess.run(["less"], input=content) while True: - response = input('Do you want to run this script? [y/n] ').lower().strip()[0] - if response == 'y': - subprocess.run(['bash'], input=content) + response = ( + input("Do you want to run this script? [y/n] ").lower().strip()[0] + ) + if response == "y": + subprocess.run(["bash"], input=content) break - elif response == 'n': - print('Script not run.') + elif response == "n": + print("Script not run.") break