From aad03be4c8f638673450b4009dfdf65591428538 Mon Sep 17 00:00:00 2001 From: Caio Alves Fiorotti Date: Fri, 3 Oct 2025 16:54:26 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fixing=20RequestField=20and=20en?= =?UTF-8?q?code=5Fmultipart=5Fformdata=20imports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ python/publish_workbook.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 36b442e..c4d3fbc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ # python files *.pyc + +/.idea \ No newline at end of file diff --git a/python/publish_workbook.py b/python/publish_workbook.py index 300061b..75d533d 100644 --- a/python/publish_workbook.py +++ b/python/publish_workbook.py @@ -36,8 +36,8 @@ # The following packages are used to build a multi-part/mixed request. # They are contained in the 'requests' library -from requests.packages.urllib3.fields import RequestField -from requests.packages.urllib3.filepost import encode_multipart_formdata +from urllib3.fields import RequestField +from urllib3.filepost import encode_multipart_formdata # The namespace for the REST API is 'http://tableausoftware.com/api' for Tableau Server 9.0 # or 'http://tableau.com/api' for Tableau Server 9.1 or later