]> granicus.if.org Git - python/commitdiff
Quote \r\n correctly, remove random indentation (patch #1009384). Thanks
authorJohannes Gijsbers <jlg@dds.nl>
Sun, 15 Aug 2004 12:23:10 +0000 (12:23 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Sun, 15 Aug 2004 12:23:10 +0000 (12:23 +0000)
Cherniavsky Beni!

Modules/_csv.c

index 7721c40dabbb7e42ffaca253ab0511fab2ec8ece..32806d484dc92269dac79d8b21cc69a473116f00 100644 (file)
@@ -1412,7 +1412,7 @@ PyDoc_STRVAR(csv_module_doc,
 "        escapechar = None\n"
 "        doublequote = True\n"
 "        skipinitialspace = False\n"
-"        lineterminator = '\r\n'\n"
+"        lineterminator = '\\r\\n'\n"
 "        quoting = QUOTE_MINIMAL\n"
 "\n"
 "SETTINGS:\n"
@@ -1457,7 +1457,7 @@ PyDoc_STRVAR(csv_reader_doc,
 "provided by the dialect.\n"
 "\n"
 "The returned object is an iterator.  Each iteration returns a row\n"
-            "of the CSV file (which can span multiple input lines):\n");
+"of the CSV file (which can span multiple input lines):\n");
 
 PyDoc_STRVAR(csv_writer_doc,
 "    csv_writer = csv.writer(fileobj [, dialect='excel']\n"