From 1e94f0a5bf6b7e753fc3c4eb6a57c9a82eef1ae2 Mon Sep 17 00:00:00 2001 From: Iman Tabrizian Date: Tue, 16 Jan 2024 17:32:25 -0500 Subject: [PATCH] Add missing imports (#460) * Add missing imports * Fix CodeQL --- src/python/library/requirements/requirements.txt | 2 +- src/python/library/tritonclient/http/aio/__init__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/library/requirements/requirements.txt b/src/python/library/requirements/requirements.txt index 03fafdf16..6f84e21f9 100644 --- a/src/python/library/requirements/requirements.txt +++ b/src/python/library/requirements/requirements.txt @@ -26,4 +26,4 @@ numpy>=1.19.1 python-rapidjson>=0.9.1 -urllib3>=2.0.7 \ No newline at end of file +urllib3>=2.0.7 diff --git a/src/python/library/tritonclient/http/aio/__init__.py b/src/python/library/tritonclient/http/aio/__init__.py index 68cb99dce..405474975 100755 --- a/src/python/library/tritonclient/http/aio/__init__.py +++ b/src/python/library/tritonclient/http/aio/__init__.py @@ -33,6 +33,9 @@ "The installation does not include http support. Specify 'http' or 'all' while installing the tritonclient package to include the support" ) from error +import base64 +import gzip +import zlib from urllib.parse import quote import rapidjson as json