summaryrefslogtreecommitdiff
path: root/packages/python/python-2.5.2/sitecustomize.py
diff options
context:
space:
mode:
authorMichael Lauer <mickeyl@shell.apm.etc.tu-bs.de>2008-10-23 15:10:19 +0000
committerMichael Lauer <mickeyl@shell.apm.etc.tu-bs.de>2008-10-23 15:10:19 +0000
commit1f1e1431aa2c97c3d49eac5cc95b439002ec2c87 (patch)
tree24f520404976885e81be66b9d3814c59c4e5ff5d /packages/python/python-2.5.2/sitecustomize.py
parentf6736554873819f2f0ceb85336890bfb6745732d (diff)
python 2.5.2 limit readline history to 1000
Diffstat (limited to 'packages/python/python-2.5.2/sitecustomize.py')
-rw-r--r--packages/python/python-2.5.2/sitecustomize.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/python/python-2.5.2/sitecustomize.py b/packages/python/python-2.5.2/sitecustomize.py
index ec626b4b63..273901898a 100644
--- a/packages/python/python-2.5.2/sitecustomize.py
+++ b/packages/python/python-2.5.2/sitecustomize.py
@@ -1,6 +1,6 @@
# OpenEmbedded sitecustomize.py (C) 2002-2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
# GPLv2 or later
-# Version: 20082201
+# Version: 20081123
# Features:
# * set proper default encoding
# * enable readline completion in the interactive interpreter
@@ -20,7 +20,8 @@ def __registerExitHandler():
atexit.register( __exithandler )
def __enableReadlineSupport():
- readline.parse_and_bind("tab: complete")
+ readline.set_history_length( 1000 )
+ readline.parse_and_bind( "tab: complete" )
try:
readline.read_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) )
except IOError:
@@ -29,7 +30,7 @@ def __enableReadlineSupport():
def __enableDefaultEncoding():
import sys
try:
- sys.setdefaultencoding('utf8')
+ sys.setdefaultencoding( "utf8" )
except LookupError:
pass