From 36133e17470296d53c4a62f534d6e695e24fd2a0 Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Thu, 24 Jun 2021 13:03:16 +0200 Subject: [PATCH] * Replaced two instances of print() with eprint(). --- kanjidic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kanjidic.py b/kanjidic.py index aa582a7..d1e7417 100755 --- a/kanjidic.py +++ b/kanjidic.py @@ -230,7 +230,7 @@ def _kanjidic_load(dict_fname): info['readings'] = line.strip().replace(' ', ', ').replace('T2,', 'T2').replace('T1,', 'T1') _kanjidic[kanji] = info except Exception as e: - print('_kanjidic_load:', dict_fname, str(e)) + eprint('_kanjidic_load:', dict_fname, str(e)) return False return True @@ -256,7 +256,7 @@ def _kanjidic_full_text_search(dict_fname, text): if text in line.lower(): kanji += line[0] except Exception as e: - print('_kanjidic_full_text_search:', dict_fname, str(e)) + eprint('_kanjidic_full_text_search:', dict_fname, str(e)) return kanji def _s2kanji(min_strokes, max_strokes=-1): -- 2.30.2