[oe-commits] Michael Lauer : python 2.5.2 limit readline history to 1000

GIT User account git at amethyst.openembedded.net
Thu Oct 23 17:33:06 UTC 2008


Module: openembedded.git
Branch: stefan/xo-support
Commit: 1f1e1431aa2c97c3d49eac5cc95b439002ec2c87
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1f1e1431aa2c97c3d49eac5cc95b439002ec2c87

Author: Michael Lauer <mickeyl at shell.apm.etc.tu-bs.de>
Date:   Thu Oct 23 15:10:19 2008 +0000

python 2.5.2 limit readline history to 1000

---

 packages/python/python-2.5.2/sitecustomize.py |    7 ++++---
 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 ec626b4..2739018 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 at 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 35bcf85..19dc65b 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"
 





More information about the Openembedded-commits mailing list