mirror of
https://github.com/qurator-spk/ocrd_repair_inconsistencies.git
synced 2025-07-05 00:19:58 +02:00
Merge pull request #13 from stweil/master
Fix for Python 3.10 and newer
This commit is contained in:
commit
cf879c1407
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