csv: update DictReader for py38 (#3586)

This commit is contained in:
hauntsaninja
2020-01-07 21:40:19 -08:00
committed by Jelle Zijlstra
parent caca02b096
commit 485b85e6b8

View File

@@ -51,7 +51,9 @@ if sys.version_info >= (3,):
lineterminator: str
quoting: int
if sys.version_info >= (3, 6):
if sys.version_info >= (3, 8):
_DRMapping = Dict[str, str]
elif sys.version_info >= (3, 6):
_DRMapping = OrderedDict[str, str]
else:
_DRMapping = Dict[str, str]