From 095a51edd0a0baa741b908328590c70f7f284c39 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Mon, 15 Feb 2021 13:33:42 +0100 Subject: [PATCH] Convert tabs to spaces in server.py (related to #1862) --- cps/server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cps/server.py b/cps/server.py index 3148aed6..9358c2d5 100644 --- a/cps/server.py +++ b/cps/server.py @@ -153,10 +153,10 @@ class WebServer(object): # not exist if a setuptools script is installed as an egg. It may be # set incorrectly for entry points created with pip on Windows. if getattr(__main__, "__package__", None) is None or ( - os.name == "nt" - and __main__.__package__ == "" - and not os.path.exists(py_script) - and os.path.exists(f"{py_script}.exe") + os.name == "nt" + and __main__.__package__ == "" + and not os.path.exists(py_script) + and os.path.exists(f"{py_script}.exe") ): # Executed a file, like "python app.py". py_script = os.path.abspath(py_script)