Squelch pep8 and pylint output unless they fail

This commit is contained in:
Calen Pennington
2013-03-12 13:26:07 -04:00
parent 7b2efa9dbf
commit 137662081f
2 changed files with 4 additions and 7 deletions

View File

@@ -1,14 +1,10 @@
import json
import logging
import random
from xmodule.mako_module import MakoModuleDescriptor
from xmodule.x_module import XModule
from xmodule.xml_module import XmlDescriptor
from xmodule.modulestore import Location
from xmodule.seq_module import SequenceDescriptor
from pkg_resources import resource_string
from xblock.core import Scope, Integer
log = logging.getLogger('mitx.' + __name__)
@@ -99,6 +95,7 @@ class RandomizeDescriptor(SequenceDescriptor):
stores_state = True
def definition_to_xml(self, resource_fs):
xml_object = etree.Element('randomize')
for child in self.get_children():
xml_object.append(