diff --git a/src/azure-cli/azure/cli/command_modules/acr/_archive_utils.py b/src/azure-cli/azure/cli/command_modules/acr/_archive_utils.py index 1f11716ff37..2a695dca55c 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/_archive_utils.py +++ b/src/azure-cli/azure/cli/command_modules/acr/_archive_utils.py @@ -7,7 +7,6 @@ import os import re import codecs -from io import open import requests from knack.log import get_logger from knack.util import CLIError diff --git a/src/azure-cli/azure/cli/command_modules/appconfig/_kv_helpers.py b/src/azure-cli/azure/cli/command_modules/appconfig/_kv_helpers.py index a799f90056d..034f398294a 100644 --- a/src/azure-cli/azure/cli/command_modules/appconfig/_kv_helpers.py +++ b/src/azure-cli/azure/cli/command_modules/appconfig/_kv_helpers.py @@ -5,7 +5,6 @@ # pylint: disable=line-too-long,too-many-nested-blocks,too-many-lines,too-many-return-statements -import io import json from itertools import chain from json import JSONDecodeError @@ -91,7 +90,7 @@ def __read_with_appropriate_encoding(file_path, format_): detected_encoding = __check_file_encoding(file_path) try: - with io.open(file_path, 'r', encoding=default_encoding) as config_file: + with open(file_path, 'r', encoding=default_encoding) as config_file: if format_ == 'json': config_data = json.load(config_file) # Only accept json objects @@ -110,7 +109,7 @@ def __read_with_appropriate_encoding(file_path, format_): if detected_encoding == default_encoding: raise - with io.open(file_path, 'r', encoding=detected_encoding) as config_file: + with open(file_path, 'r', encoding=detected_encoding) as config_file: if format_ == 'json': config_data = json.load(config_file) diff --git a/src/azure-cli/azure/cli/command_modules/containerapp/_archive_utils.py b/src/azure-cli/azure/cli/command_modules/containerapp/_archive_utils.py index c97281326c1..2428a7b32ce 100644 --- a/src/azure-cli/azure/cli/command_modules/containerapp/_archive_utils.py +++ b/src/azure-cli/azure/cli/command_modules/containerapp/_archive_utils.py @@ -8,7 +8,6 @@ import os import re import codecs -from io import open import requests from knack.log import get_logger from azure.core.exceptions import HttpResponseError