Skip to content

Commit 945ccac

Browse files
committed
Fix syntax error
1 parent 7f31a06 commit 945ccac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/training/tesstrain_utils.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ def __init__(self):
5858

5959
def __eq__(self, other):
6060
return (argparse.Namespace.__eq__(self, other) and
61-
self.uname = other.uname and self.lang_code = other.lang_code and
62-
self.timestamp = other.timestamp and self.font_config_cache = other.font_config_cache and
63-
self.fonts_dir = other.fonts_dir and self.max_pages = other.max_pages and
64-
self.save_box_tiff = other.save_box_tiff and self.overwrite = other.overwrite and
65-
self.linedata = other.linedata and self.run_shape_clustering = other.run_shape_clustering and
66-
self.extract_font_properties = other.extract_font_properties and
67-
self.distort_image = other.distort_image)
61+
self.uname == other.uname and self.lang_code == other.lang_code and
62+
self.timestamp == other.timestamp and self.font_config_cache == other.font_config_cache and
63+
self.fonts_dir == other.fonts_dir and self.max_pages == other.max_pages and
64+
self.save_box_tiff == other.save_box_tiff and self.overwrite == other.overwrite and
65+
self.linedata == other.linedata and self.run_shape_clustering == other.run_shape_clustering and
66+
self.extract_font_properties == other.extract_font_properties and
67+
self.distort_image == other.distort_image)
6868

6969

7070
def err_exit(msg):

0 commit comments

Comments
 (0)