From e66e4040b13183fd057a0dcf629b91ceb70ad27c Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Fri, 4 Jan 2013 14:10:50 +0200 Subject: [PATCH] replaced ordereddict with dict --- common/lib/capa/capa/graders/draganddrop.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/common/lib/capa/capa/graders/draganddrop.py b/common/lib/capa/capa/graders/draganddrop.py index ff37ef2b3e..4fef58bf7b 100644 --- a/common/lib/capa/capa/graders/draganddrop.py +++ b/common/lib/capa/capa/graders/draganddrop.py @@ -27,7 +27,6 @@ values are (x,y) coordinates of centers of dragged images. """ import json -from collections import OrderedDict class PositionsCompare(list): @@ -105,10 +104,10 @@ class DragAndDrop(object): """ Grader class for drag and drop inputtype. """ def __init__(self): - self.correct_groups = OrderedDict() # correct groups from xml - self.correct_positions = OrderedDict() # correct positions for comparing - self.user_groups = OrderedDict() # will be populated from user answer - self.user_positions = OrderedDict() # will be populated from user answer + self.correct_groups = dict() # correct groups from xml + self.correct_positions = dict() # correct positions for comparing + self.user_groups = dict() # will be populated from user answer + self.user_positions = dict() # will be populated from user answer def grade(self): ''' Grader user answer.