Permalink
Browse files

Remove dependency on 'atexit' module too.

  • Loading branch information...
Andy Chu
Andy Chu committed Feb 2, 2018
1 parent 706724f commit 99e6091e5a433dc26c15bd4bbedcba45e83b346f
Showing with 3 additions and 2 deletions.
  1. +3 −2 core/completion.py
View
@@ -29,7 +29,6 @@
Uses ITEMLIST with a bunch of flags.
"""
import atexit
import readline
import os
import sys
@@ -725,7 +724,9 @@ def InitReadline(complete_cb):
except IOError:
pass
atexit.register(readline.write_history_file, history_filename)
# TODO: This should go at the end of main()? atexit is Python-specific
# control flow, which we're avoiding.
#atexit.register(readline.write_history_file, history_filename)
readline.parse_and_bind("tab: complete")
# How does this map to C?

0 comments on commit 99e6091

Please sign in to comment.