Re: doctest problem with null byte

2007-01-25 Thread Tim Peters
[Stuart D. Gathman] > I am trying to create a doctest test case for the following: > > def quote_value(s): > """Quote the value for a key-value pair in Received-SPF header > field if needed. No quoting needed for a dot-atom value. > > >>> quote_value(r'abc\def') > '"abcdef"

doctest problem with null byte

2007-01-25 Thread Stuart D. Gathman
I am trying to create a doctest test case for the following: def quote_value(s): """Quote the value for a key-value pair in Received-SPF header field if needed. No quoting needed for a dot-atom value. >>> quote_value(r'abc\def') '"abcdef"' >>> quote_value('abc..def')