From 90f1a4862cf63df4a96ad912effcfb54192ad4d7 Mon Sep 17 00:00:00 2001 From: Paula Gombar Date: Tue, 8 Dec 2020 18:53:57 -0800 Subject: [PATCH 3/3] fix pylint --- azurelinuxagent/common/future.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azurelinuxagent/common/future.py b/azurelinuxagent/common/future.py index 0f76aceba786..a6796f19fec2 100644 --- a/azurelinuxagent/common/future.py +++ b/azurelinuxagent/common/future.py @@ -106,12 +106,12 @@ def get_openwrt_platform(): return result -def array_to_string_or_bytes(buffer): +def array_to_string_or_bytes(buff): # Python 3.9 removed the tostring() method on arrays, the new alias is tobytes() if sys.version_info[0] == 2: - return buffer.tostring() + return buff.tostring() if sys.version_info[0] == 3 and sys.version_info[1] <= 8: - return buffer.tostring() + return buff.tostring() - return buffer.tobytes() + return buff.tobytes() -- 2.26.2