From 59280bbe073060d1249e6404e11303ed6faa84f6 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Thu, 23 May 2024 01:59:37 +0800 Subject: [PATCH] perf: use packaging.version instead of distutils distutils has been removed since python 3.12 --- tableaudocumentapi/xfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tableaudocumentapi/xfile.py b/tableaudocumentapi/xfile.py index 8d2bb9f..c905417 100644 --- a/tableaudocumentapi/xfile.py +++ b/tableaudocumentapi/xfile.py @@ -5,7 +5,7 @@ import zipfile from lxml import etree as ET -from distutils.version import LooseVersion as Version +from packaging.version import Version MIN_SUPPORTED_VERSION = Version("9.0")