summaryrefslogtreecommitdiffstats
path: root/Lib/csv.py
diff options
context:
space:
mode:
authorMichael Selik <mike@selik.org>2019-01-31 08:47:53 (GMT)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>2019-01-31 08:47:53 (GMT)
commit9f3f0931cfc58498086d287226650599a97412bb (patch)
treeec55acd86918244262c99c5d8c888932f6459dd2 /Lib/csv.py
parenta1f9a3332bd4767e47013ea787022f06b6dbcbbd (diff)
downloadcpython-9f3f0931cfc58498086d287226650599a97412bb.zip
cpython-9f3f0931cfc58498086d287226650599a97412bb.tar.gz
cpython-9f3f0931cfc58498086d287226650599a97412bb.tar.bz2
bpo-34003: Use dict instead of OrderedDict in csv.DictReader (GH-8014)
Diffstat (limited to 'Lib/csv.py')
-rw-r--r--Lib/csv.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/csv.py b/Lib/csv.py
index 58624af..eeeedab 100644
--- a/Lib/csv.py
+++ b/Lib/csv.py
@@ -11,7 +11,6 @@ from _csv import Error, __version__, writer, reader, register_dialect, \
__doc__
from _csv import Dialect as _Dialect
-from collections import OrderedDict
from io import StringIO
__all__ = ["QUOTE_MINIMAL", "QUOTE_ALL", "QUOTE_NONNUMERIC", "QUOTE_NONE",
@@ -117,7 +116,7 @@ class DictReader:
# values
while row == []:
row = next(self.reader)
- d = OrderedDict(zip(self.fieldnames, row))
+ d = dict(zip(self.fieldnames, row))
lf = len(self.fieldnames)
lr = len(row)
if lf < lr: