From 02bb23f46a05a9949fb3e352695a951128b3a338 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Tue, 15 May 2012 10:55:27 -0400 Subject: [PATCH] Minor formatting cleanup --- djangoapps/courseware/modules/seq_module.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/djangoapps/courseware/modules/seq_module.py b/djangoapps/courseware/modules/seq_module.py index 161c95b604..00350f0c62 100644 --- a/djangoapps/courseware/modules/seq_module.py +++ b/djangoapps/courseware/modules/seq_module.py @@ -2,7 +2,7 @@ import json from lxml import etree -from mitxmako.shortcuts import render_to_response, render_to_string +from mitxmako.shortcuts import render_to_string from x_module import XModule @@ -104,11 +104,11 @@ class Module(XModule): def __init__(self, system, xml, item_id, state=None): XModule.__init__(self, system, xml, item_id, state) - self.xmltree=etree.fromstring(xml) + self.xmltree = etree.fromstring(xml) self.position = 1 - if state!=None: + if state != None: state = json.loads(state) if 'position' in state: self.position = int(state['position'])