From 1492e741037cd3f4d3a406ae6a6e97899c9bd9b5 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 9 May 2023 15:21:37 +0300 Subject: [PATCH] bin/webbrowser: Fix indent (3 spaces to 4) --- bin/webbrowser | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/bin/webbrowser b/bin/webbrowser index 674ad69..189ed24 100755 --- a/bin/webbrowser +++ b/bin/webbrowser @@ -10,25 +10,25 @@ set_current_browser() import webbrowser if sys.argv[1] in ("-t", "--tab"): - new = 2 - try: - url = sys.argv[2] - except IndexError: - url = '' + new = 2 + try: + url = sys.argv[2] + except IndexError: + url = '' elif sys.argv[1] in ("-n", "--new"): - new = 1 - try: - url = sys.argv[2] - except IndexError: - url = '' + new = 1 + try: + url = sys.argv[2] + except IndexError: + url = '' else: - new = 0 - try: - url = sys.argv[1] - except IndexError: - url = '' + new = 0 + try: + url = sys.argv[1] + except IndexError: + url = '' if url and '://' not in url: # Make an URL from a local file name url = 'file://' + os.path.abspath(url) -- 2.39.5