From: Bastian Germann <bage@debian.org>
Date: Mon, 24 Feb 2025 08:13:27 +0100
Forwarded: not-needed
Subject: Revert "Update import for breaking changes in python-bidi 0.5.0"

This reverts commit 85917f839d649dddbef3fed13e96485b08caf6e6.
---
 pyproject.toml    | 2 +-
 xhtml2pdf/util.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 2708caf..b496d04 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -53,7 +53,7 @@ dependencies = [
     "pyHanko>=0.12.1",
     "pyhanko-certvalidator>=0.19.5",
     "pypdf>=3.1.0",
-    "python-bidi>=0.5.0",
+    "python-bidi>=0.4.2",
     "reportlab>=4.0.4,<5",
     "svglib>=1.2.1"
 ]
diff --git a/xhtml2pdf/util.py b/xhtml2pdf/util.py
index 8e5afc8..c7839ea 100644
--- a/xhtml2pdf/util.py
+++ b/xhtml2pdf/util.py
@@ -22,7 +22,7 @@ from typing import Any
 import arabic_reshaper
 import reportlab
 import reportlab.pdfbase._cidfontdata
-from bidi import get_display
+from bidi.algorithm import get_display
 from reportlab.lib.colors import Color, toColor
 from reportlab.lib.enums import TA_CENTER, TA_JUSTIFY, TA_LEFT, TA_RIGHT
 from reportlab.lib.units import cm, inch
