diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-04-24 18:26:53 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-04-24 18:26:53 (GMT) |
commit | a4618736c037b23b99badfcab65296833f309c2a (patch) | |
tree | f4322ef602487259c4aa229eca654358e0c3fb71 | |
parent | ae0b088f6ca4156e7f8ee32fda0264f676f3d6b3 (diff) | |
download | cpython-a4618736c037b23b99badfcab65296833f309c2a.zip cpython-a4618736c037b23b99badfcab65296833f309c2a.tar.gz cpython-a4618736c037b23b99badfcab65296833f309c2a.tar.bz2 |
Obvious simplification, now that "long" has disappeared.
-rw-r--r-- | Lib/csv.py | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -369,7 +369,7 @@ class Sniffer: for col in list(columnTypes.keys()): - for thisType in [int, int, float, complex]: + for thisType in [int, float, complex]: try: thisType(row[col]) break @@ -379,10 +379,6 @@ class Sniffer: # fallback to length of string thisType = len(row[col]) - # treat longs as ints - if thisType == int: - thisType = int - if thisType != columnTypes[col]: if columnTypes[col] is None: # add new column type columnTypes[col] = thisType |