diff --git a/digits/extensions/data/objectDetection/data.py b/digits/extensions/data/objectDetection/data.py index 31cdc1859..0ece800af 100644 --- a/digits/extensions/data/objectDetection/data.py +++ b/digits/extensions/data/objectDetection/data.py @@ -35,7 +35,7 @@ def __init__(self, **kwargs): s = StringIO.StringIO(self.custom_classes) reader = csv.reader(s) self.class_mappings = {} - for idx, name in enumerate(reader.next()): + for idx, name in enumerate(next(reader)): self.class_mappings[name.strip().lower()] = idx else: self.class_mappings = None