Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct atexit hook

  • Loading branch information...
commit 2d35873f1c79f067a70358aae0ce5ac92e8de87d 1 parent 3fe3452
@dcramer authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/pythonrc.py
View
6 python/pythonrc.py
@@ -17,4 +17,8 @@
readline.set_history_length(1024 * 5)
-atexit.register(lambda x=history: readline.write_history_file(x))
+def write_history(x):
+ import readline:
+ readline.write_history_file(x)
+
+atexit.register(write_history)

0 comments on commit 2d35873

Please sign in to comment.
Something went wrong with that request. Please try again.