Merge lp:~jorgen-stenarson/ipython/ipython-bug-315392 into lp:ipython/0.11

Proposed by Jörgen Stenarson on 2009-04-16
Status: Merged
Merge reported by: Brian Granger
Merged at revision: not available
Proposed branch: lp:~jorgen-stenarson/ipython/ipython-bug-315392
Merge into: lp:ipython/0.11
Diff against target: None lines
To merge this branch: bzr merge lp:~jorgen-stenarson/ipython/ipython-bug-315392
Reviewer Review Type Date Requested Status
IPython Developers 2009-04-16 Pending
Review via email: mp+5624@code.launchpad.net
To post a comment you must log in.

This is a quickfix for a unicode problem in the readline completer delims initialization.

The idea is to just zap any non-ascii characters from the completer_delim string. This should work fine because current behaviour is to just allow strings anyway.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'IPython/iplib.py'
2--- IPython/iplib.py 2009-04-07 07:59:15 +0000
3+++ IPython/iplib.py 2009-04-16 17:37:40 +0000
4@@ -1475,7 +1475,7 @@
5 readline.parse_and_bind(rlcommand)
6
7 # remove some chars from the delimiters list
8- delims = readline.get_completer_delims()
9+ delims = readline.get_completer_delims().encode("ascii", "ignore")
10 delims = delims.translate(string._idmap,
11 self.rc.readline_remove_delims)
12 readline.set_completer_delims(delims)

Subscribers

People subscribed via source and target branches