Skip to content

Commit

Permalink
Revert "Drop reportlab warning shim"
Browse files Browse the repository at this point in the history
This reverts commit 162a47f.
  • Loading branch information
jbarlow83 committed Sep 21, 2023
1 parent 146da79 commit fde886b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/ocrmypdf/hocrtransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@
import argparse
import os
import re
import warnings
from math import atan, cos, sin
from pathlib import Path
from typing import Any, NamedTuple
from xml.etree import ElementTree

from reportlab.lib.colors import black, cyan, magenta, red
from reportlab.lib.units import inch
from reportlab.pdfgen.canvas import Canvas
with warnings.catch_warnings():
# reportlab uses deprecated load_module
warnings.filterwarnings(
'ignore', category=DeprecationWarning, message=r".*load_module.*"
)
from reportlab.lib.colors import black, cyan, magenta, red
from reportlab.lib.units import inch
from reportlab.pdfgen.canvas import Canvas

# According to Wikipedia these languages are supported in the ISO-8859-1 character
# set, meaning reportlab can generate them and they are compatible with hocr,
Expand Down

0 comments on commit fde886b

Please sign in to comment.