diff options
author | Michael Lauer <mickeyl@shell.apm.etc.tu-bs.de> | 2008-10-23 15:10:19 +0000 |
---|---|---|
committer | Michael Lauer <mickeyl@shell.apm.etc.tu-bs.de> | 2008-10-23 15:10:19 +0000 |
commit | 1f1e1431aa2c97c3d49eac5cc95b439002ec2c87 (patch) | |
tree | 24f520404976885e81be66b9d3814c59c4e5ff5d /packages | |
parent | f6736554873819f2f0ceb85336890bfb6745732d (diff) |
python 2.5.2 limit readline history to 1000
Diffstat (limited to 'packages')
-rw-r--r-- | packages/python/python-2.5.2/sitecustomize.py | 7 | ||||
-rw-r--r-- | packages/python/python_2.5.2.bb | 2 |
2 files changed, 5 insertions, 4 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 diff --git a/packages/python/python_2.5.2.bb b/packages/python/python_2.5.2.bb index 35bcf858e6..19dc65b358 100644 --- a/packages/python/python_2.5.2.bb +++ b/packages/python/python_2.5.2.bb @@ -6,7 +6,7 @@ PRIORITY = "optional" DEPENDS = "python-native db gdbm openssl readline sqlite3 tcl tk zlib" DEPENDS_sharprom = "python-native db readline zlib gdbm openssl" # bump this on every change in contrib/python/generate-manifest-2.5.py -PR = "ml13" +PR = "ml14" PYTHON_MAJMIN = "2.5" |