Skip to content

Commit

Permalink
Revert commit dc43464 (no longer needed)
Browse files Browse the repository at this point in the history
Importing __future__ was only needed for old Python 2
which is no longer supported.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 16, 2024
1 parent 2867727 commit c093088
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion hocr-check
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# check the given file for conformance with the hOCR format spec

from __future__ import print_function
import argparse
import sys

Expand Down
1 change: 0 additions & 1 deletion hocr-combine
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import argparse

from lxml import etree, html
Expand Down
1 change: 0 additions & 1 deletion hocr-cut
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import argparse
import os
import sys
Expand Down
1 change: 0 additions & 1 deletion hocr-eval
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# compute statistics about the quality of the geometric segmentation
# at the level of the given OCR element

from __future__ import print_function
import argparse
import re

Expand Down
1 change: 0 additions & 1 deletion hocr-eval-geom
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# compute statistics about the quality of the geometric segmentation
# at the level of the given OCR element

from __future__ import print_function
import argparse
import re

Expand Down
1 change: 0 additions & 1 deletion hocr-eval-lines
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# compute statistics about the quality of the geometric segmentation
# at the level of the given OCR element

from __future__ import print_function
import argparse
import re

Expand Down
1 change: 0 additions & 1 deletion hocr-extract-g1000
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# extract lines from Google 1000 book sample

from __future__ import print_function
import glob
import os
import re
Expand Down
1 change: 0 additions & 1 deletion hocr-extract-images
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# extract the images and texts within all the ocr_line elements
# within the hOCR file

from __future__ import print_function
import argparse
import codecs
import os
Expand Down
1 change: 0 additions & 1 deletion hocr-lines
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# extract the text within all the ocr_line elements within the hOCR file

from __future__ import print_function
import argparse
import re
import sys
Expand Down
1 change: 0 additions & 1 deletion hocr-merge-dc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import argparse
import re

Expand Down
1 change: 0 additions & 1 deletion hocr-pdf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# Create a searchable PDF from a pile of HOCR + JPEG. Tested with
# Tesseract.

from __future__ import print_function
import argparse
import base64
import glob
Expand Down
1 change: 0 additions & 1 deletion hocr-split
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# split an hOCR file into individual pages

from __future__ import print_function
import argparse
import re

Expand Down
1 change: 0 additions & 1 deletion hocr-wordfreq
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import sys
import re
import argparse
Expand Down

0 comments on commit c093088

Please sign in to comment.