[pypy-svn] r23343 - pypy/dist/pypy/bin

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Feb 14 21:04:04 CET 2006


Author: cfbolz
Date: Tue Feb 14 21:04:02 2006
New Revision: 23343

Modified:
   pypy/dist/pypy/bin/translator.py
Log:
don't grow the history very fast when using rlcompleter2


Modified: pypy/dist/pypy/bin/translator.py
==============================================================================
--- pypy/dist/pypy/bin/translator.py	(original)
+++ pypy/dist/pypy/bin/translator.py	Tue Feb 14 21:04:02 2006
@@ -41,6 +41,7 @@
     import os
     histfile = os.path.join(os.environ["HOME"], ".pypytrhist")
     try:
+        getattr(readline, "clear_history", lambda : None)()
         readline.read_history_file(histfile)
     except IOError:
         pass



More information about the Pypy-commit mailing list