changeset 51:5d3fb2f3aa21

Remove cleanup function as it is unused.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 May 2021 23:10:51 +0300
parents 5b22ffdab0ce
children 95671cdda422 301452a71cc7
files lxmldump.py
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)