Skip to content

Commit

Permalink
Remove dependency on 'atexit' module too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Feb 2, 2018
1 parent 706724f commit 99e6091
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/completion.py
Expand Up @@ -29,7 +29,6 @@
Uses ITEMLIST with a bunch of flags.
"""

import atexit
import readline
import os
import sys
Expand Down Expand Up @@ -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?
Expand Down

0 comments on commit 99e6091

Please sign in to comment.