# HG changeset patch # User Matti Hamalainen # Date 1622059851 -10800 # Node ID 5d3fb2f3aa218fb9802741ae797a54eb39dc35cf # Parent 5b22ffdab0ceedb209dbf2b1f0289202d4dcdb83 Remove cleanup function as it is unused. diff -r 5b22ffdab0ce -r 5d3fb2f3aa21 lxmldump.py --- a/lxmldump.py Wed May 26 23:10:24 2021 +0300 +++ b/lxmldump.py Wed May 26 23:10:51 2021 +0300 @@ -49,7 +49,7 @@ "word_fmt": { PKK_MODE_NORMAL: "\"{word}\"{search}{attr}\n{hyphenation}{main_sense}{other_senses}\n", - PKK_MODE_ANKI: "\"{word}\"{search}{attr}{hyphenation};{main_sense};{other_senses}\n\n", + PKK_MODE_ANKI: "\"{word}\"{search}{attr}{hyphenation};{main_sense};{other_senses}\n", }, "word_attr_list": { PKK_MODE_NORMAL: " ({alist}) ", @@ -148,9 +148,6 @@ ### ### Misc. helper functions, etc ### -def pkk_cleanup(): - return 0 - ## Print string to stdout using normalized Unicode if enabled def pkk_print(smsg): @@ -182,7 +179,6 @@ ## Handler for SIGINT signals def pkk_signal_handler(signal, frame): - pkk_cleanup() print(u"\nQuitting due to SIGINT / Ctrl+C!") sys.exit(1) @@ -538,5 +534,4 @@ sys.stderr.close() sys.exit(1) -pkk_cleanup() sys.exit(0)