Run yapf on all python files in the repo
Signed-off-by: Ravago Jones <ravagojones@gmail.com>
Change-Id: I221e04c3f517fab8535b22551553799e0fee7a80
diff --git a/build_tests/dummy_http_server.py b/build_tests/dummy_http_server.py
index f65122a..0661a8a 100644
--- a/build_tests/dummy_http_server.py
+++ b/build_tests/dummy_http_server.py
@@ -11,6 +11,7 @@
from http.server import BaseHTTPRequestHandler, HTTPServer
import os
+
def parse_auth(authorization):
auth_type, auth_info = authorization.split(" ", maxsplit=1)
if auth_type != "Basic":
@@ -18,7 +19,9 @@
username, _ = base64.b64decode(auth_info).decode().split(":", 1)
return username
+
class Server(BaseHTTPRequestHandler):
+
def _set_response(self):
self.send_response(200)
self.send_header("Content-type", "text/html")
@@ -34,6 +37,7 @@
username = parse_auth(self.headers["Authorization"])
self._write(f"Hello, {username}")
+
def main():
port = int(os.environ["APACHE_WRAPPED_PORT"])
server_address = ("", port)
@@ -44,5 +48,6 @@
pass
httpd.server_close()
+
if __name__ == "__main__":
main()