New submission from Alex Earl:
As you can see below, the code in fileobject.c is removing the U from the UTF-8
(or UNICODE) when it tries to replace a U for universal line ending mode.
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on
win32
Type "help",
Alex Earl added the comment:
Excellent. As long as it's documented, it works for me.
--
___
Python tracker
<http://bugs.python.org/issue10602>
___
___
Pytho
Alex Earl added the comment:
The patch looks good to me. The only question I have is that the previous test
that was passing a string, is the expected behavior what was being returned
before, or would it be useful to turn the string into an iterable over "
Alex Earl added the comment:
The internal _csv module which actually implements the reader method expects
the first parameter to be an iterable object. Since strings are iterated by
character, that is why this is occuring. So, the fix would need to be made in
the _csv module, which is a C
New submission from Alex Earl :
in test_csv.py, the follow test is declared.
def test_register_kwargs(self):
name = 'fedcba'
csv.register_dialect(name, delimiter=';')
try:
self.assertTrue(csv.get_dialect(name).delimiter, '\t')
self.ass