From f5b37db1ba98da2268223575935870308f837ff9 Mon Sep 17 00:00:00 2001 From: saurabhPatilCybage Date: Mon, 23 Jun 2025 18:18:29 +0530 Subject: [PATCH] Fixes the issue of collection for python version 3.11 --- facebook_business/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/facebook_business/api.py b/facebook_business/api.py index 095a9a3e7..b3d83e5c9 100644 --- a/facebook_business/api.py +++ b/facebook_business/api.py @@ -28,8 +28,8 @@ # Since python 3 from six.moves import collections_abc except ImportError: - # Won't work after python 3.8 - import collections as collections_abc + # Fixes the issue for python 3.11 + import collections.abc as collections_abc from facebook_business.adobjects.objectparser import ObjectParser from facebook_business.typechecker import TypeChecker