Merge pull request #13 from stweil/master

Fix for Python 3.10 and newer
master
Mike Gerber 12 months ago committed by GitHub
commit cf879c1407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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