Merge pull request #13 from stweil/master

Fix for Python 3.10 and newer
This commit is contained in:
Mike Gerber 2023-06-22 18:35:30 +02:00 committed by GitHub
commit cf879c1407
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,12 @@
from __future__ import absolute_import from __future__ import absolute_import
import os.path 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 import Processor
from ocrd_modelfactory import page_from_file from ocrd_modelfactory import page_from_file