From 9399fd65b0bd83359508610dfdde508775b1aa17 Mon Sep 17 00:00:00 2001 From: Iris Rademacher Date: Tue, 9 Jan 2024 13:11:05 -0500 Subject: [PATCH] manual changes --- hail/python/hailtop/auth/flow.py | 3 ++- hail/src/test/resources/makeTestInfoScore.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hail/python/hailtop/auth/flow.py b/hail/python/hailtop/auth/flow.py index 07346a89b832..87a0201bff87 100644 --- a/hail/python/hailtop/auth/flow.py +++ b/hail/python/hailtop/auth/flow.py @@ -112,7 +112,8 @@ def receive_callback(self, request: aiohttp.web.Request, flow_dict: dict) -> Flo flow.redirect_uri = flow_dict['callback_uri'] flow.fetch_token(code=request.query['code']) token = google.oauth2.id_token.verify_oauth2_token( - flow.credentials.id_token, google.auth.transport.requests.Request() # type: ignore + flow.credentials.id_token, # type: ignore + google.auth.transport.requests.Request() # type: ignore ) email = token['email'] return FlowResult(email, email, token.get('hd'), token) diff --git a/hail/src/test/resources/makeTestInfoScore.py b/hail/src/test/resources/makeTestInfoScore.py index 871f64718a6c..93475d9d595d 100644 --- a/hail/src/test/resources/makeTestInfoScore.py +++ b/hail/src/test/resources/makeTestInfoScore.py @@ -107,7 +107,7 @@ def transformDosage(dx): l1 = int((w0 + w1) * 32768 / sumDx + 0.5) - l0 l2 = 32768 - l0 - l1 except: - print dx + print(dx) sys.exit() return [l0 / 32768.0, l1 / 32768.0, l2 / 32768.0]