Fix for Python 3.10 and newer

Signed-off-by: Stefan Weil <sw@weilnetz.de>
pull/13/head
Stefan Weil 1 year ago
parent c898d6ce2d
commit c82856fb5a

@ -1,7 +1,12 @@
from __future__ import absolute_import
import os.path
from collections import Sequence
try:
from collections import Sequence
except ImportError:
# With Python 3.10 Sequence has been moved to collections.abc.
from collections.abc import Sequence
from ocrd import Processor
from ocrd_modelfactory import page_from_file

Loading…
Cancel
Save