mirror of
https://github.com/qurator-spk/ocrd_repair_inconsistencies.git
synced 2025-06-09 11:49:58 +02:00
Fix for Python 3.10 and newer
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
c898d6ce2d
commit
c82856fb5a
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue