Permalink
Browse files
Remove dependency on 'atexit' module too.
- Loading branch information...
Showing
with
3 additions
and
2 deletions.
-
+3
−2
core/completion.py
|
|
@@ -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