From 283aceb9ab3831c14f1915bbcf3eb02de51a7bd2 2007-03-20 20:00:01 From: jstenar Date: 2007-03-20 20:00:01 Subject: [PATCH] fixed bug in IPython/Extensions/ipy_stock_completer.py that caused shlex_split to sometimes return "" as last element. --- diff --git a/IPython/Extensions/ipy_stock_completers.py b/IPython/Extensions/ipy_stock_completers.py index 39e9857..9ba01f2 100755 --- a/IPython/Extensions/ipy_stock_completers.py +++ b/IPython/Extensions/ipy_stock_completers.py @@ -176,7 +176,7 @@ def shlex_split(x): while x!="": try: comps=shlex.split(x) - if endofline>=1: + if len(endofline)>=1: comps.append("".join(endofline)) return comps except ValueError: diff --git a/doc/ChangeLog b/doc/ChangeLog index e9f1a7b..ee2c492 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,9 @@ +2007-03-20 J�rgen Stenarson + * IPython/Extensions/ipy_stock_completer.py + shlex_split, fix bug in shlex_split. len function + call was missing in if statement. Caused shlex_split to + sometimes return "" as last element. + 2007-03-18 Fernando Perez * IPython/completer.py