Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae0b088 commit a461873Copy full SHA for a461873
1 file changed
Lib/csv.py
@@ -369,7 +369,7 @@ def has_header(self, sample):
369
370
for col in list(columnTypes.keys()):
371
372
- for thisType in [int, int, float, complex]:
+ for thisType in [int, float, complex]:
373
try:
374
thisType(row[col])
375
break
@@ -379,10 +379,6 @@ def has_header(self, sample):
379
# fallback to length of string
380
thisType = len(row[col])
381
382
- # treat longs as ints
383
- if thisType == int:
384
- thisType = int
385
-
386
if thisType != columnTypes[col]:
387
if columnTypes[col] is None: # add new column type
388
columnTypes[col] = thisType
0 commit comments