I'm running windows Vista x64, terminal encoding is 'cp850' for both stdin and stdout. Using python 2.5.2.
If I just run python from the command line then string.whitespace is '\t\n\x0b\x0c\r '
However when debugging the stack trace I was getting whenever I tried to use tab completion I discovered that string.whitespace contained the non-breaking space.
For a slightly more elegant solution that manually setting the delimiters, you could just do a string replace to remove the non-breaking space - which obviously would just have no effect if the character isn't already there.
I'm running windows Vista x64, terminal encoding is 'cp850' for both stdin and stdout. Using python 2.5.2.
If I just run python from the command line then string.whitespace is '\t\n\x0b\x0c\r '
However when debugging the stack trace I was getting whenever I tried to use tab completion I discovered that string.whitespace contained the non-breaking space.
For a slightly more elegant solution that manually setting the delimiters, you could just do a string replace to remove the non-breaking space - which obviously would just have no effect if the character isn't already there.