Home
last modified time | relevance | path

Searched refs:lineterminator (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Modules/
D_csv.c82 PyObject *lineterminator; /* string to write between records */ member
164 return get_string(self->lineterminator); in Dialect_get_lineterminator()
313 Py_XDECREF(self->lineterminator); in Dialect_dealloc()
339 PyObject *lineterminator = NULL; in dialect_new() local
351 &lineterminator, in dialect_new()
371 lineterminator == NULL && in dialect_new()
384 self->lineterminator = NULL; in dialect_new()
389 Py_XINCREF(lineterminator); in dialect_new()
401 DIALECT_GETATTR(lineterminator, "lineterminator"); in dialect_new()
416 DIASET(_set_str, "lineterminator", &self->lineterminator, lineterminator, "\r\n"); in dialect_new()
[all …]
/external/python/cpython2/Modules/
D_csv.c102 PyObject *lineterminator; /* string to write between records */ member
185 return get_string(self->lineterminator); in Dialect_get_lineterminator()
324 Py_XDECREF(self->lineterminator); in Dialect_dealloc()
350 PyObject *lineterminator = NULL; in dialect_new() local
362 &lineterminator, in dialect_new()
382 lineterminator == 0 && in dialect_new()
395 self->lineterminator = NULL; in dialect_new()
400 Py_XINCREF(lineterminator); in dialect_new()
412 DIALECT_GETATTR(lineterminator, "lineterminator"); in dialect_new()
427 DIASET(_set_str, "lineterminator", &self->lineterminator, lineterminator, "\r\n"); in dialect_new()
[all …]
/external/python/cpython3/Lib/test/
Dtest_csv.py33 self.assertRaises(TypeError, ctor, arg, lineterminator=None)
34 self.assertRaises(TypeError, ctor, arg, lineterminator=1)
53 self.assertEqual(obj.dialect.lineterminator, "\r\n")
74 lineterminator='\r', quotechar='*',
81 self.assertEqual(obj.dialect.lineterminator, "\r")
99 lineterminator='$' variable in Test_Csv._test_dialect_attrs.dialect
109 self.assertEqual(obj.dialect.lineterminator, "$")
128 expect + writer.dialect.lineterminator)
828 lineterminator = '\r\n' variable in TestDialectValidity.test_quoting.mydialect
862 lineterminator = '\r\n' variable in TestDialectValidity.test_delimiter.mydialect
[all …]
/external/python/cpython2/Lib/test/
Dtest_csv.py33 self.assertRaises(TypeError, ctor, arg, lineterminator=None)
34 self.assertRaises(TypeError, ctor, arg, lineterminator=1)
53 self.assertEqual(obj.dialect.lineterminator, "\r\n")
74 lineterminator='\r', quotechar='*',
81 self.assertEqual(obj.dialect.lineterminator, "\r")
99 lineterminator='$' variable in Test_Csv._test_dialect_attrs.dialect
109 self.assertEqual(obj.dialect.lineterminator, "$")
130 expect + writer.dialect.lineterminator)
892 lineterminator = '\r\n' variable in TestDialectValidity.test_quoting.mydialect
926 lineterminator = '\r\n' variable in TestDialectValidity.test_delimiter.mydialect
[all …]
/external/python/cpython3/Lib/
Dcsv.py40 lineterminator = None variable in Dialect
61 lineterminator = '\r\n' variable in excel
76 lineterminator = '\n' variable in unix_dialect
192 lineterminator = '\r\n' variable in Sniffer.sniff.dialect
/external/python/cpython2/Lib/
Dcsv.py42 lineterminator = None variable in Dialect
63 lineterminator = '\r\n' variable in excel
192 lineterminator = '\r\n' variable in Sniffer.sniff.dialect
/external/python/cpython2/Doc/tools/extensions/
Dsuspicious.py80 lineterminator = '\n' variable in dialect
/external/python/cpython3/Doc/tools/extensions/
Dsuspicious.py80 lineterminator = '\n' variable in dialect
/external/python/cpython3/Doc/library/
Dcsv.rst289 *lineterminator*.
357 .. attribute:: Dialect.lineterminator
365 end-of-line, and ignores *lineterminator*. This behavior may change in the
/external/python/cpython2/Doc/library/
Dcsv.rst290 *lineterminator*.
359 .. attribute:: Dialect.lineterminator
367 end-of-line, and ignores *lineterminator*. This behavior may change in the