Commit b2867a69 by Sarina Canelake Committed by Diana Huang

Quality cleanup

parent 96420f30
...@@ -12,7 +12,6 @@ from urllib import urlencode ...@@ -12,7 +12,6 @@ from urllib import urlencode
from opaque_keys.edx.locations import AssetLocation from opaque_keys.edx.locations import AssetLocation
from opaque_keys.edx.keys import CourseKey from opaque_keys.edx.keys import CourseKey
from .django import contentstore
from PIL import Image from PIL import Image
......
...@@ -459,8 +459,8 @@ class ModuleStoreReadBase(ModuleStoreRead): ...@@ -459,8 +459,8 @@ class ModuleStoreReadBase(ModuleStoreRead):
return next( return next(
( (
c.id for c in self.get_courses() c.id for c in self.get_courses()
if c.id.org.lower() == course_id.org.lower() and \ if c.id.org.lower() == course_id.org.lower() and
c.id.course.lower() == course_id.course.lower() and \ c.id.course.lower() == course_id.course.lower() and
c.id.run.lower() == course_id.run.lower() c.id.run.lower() == course_id.run.lower()
), ),
None None
......
"""Provides factories for Split."""
from xmodule.modulestore import ModuleStoreEnum from xmodule.modulestore import ModuleStoreEnum
from xmodule.course_module import CourseDescriptor from xmodule.course_module import CourseDescriptor
from xmodule.x_module import XModuleDescriptor from xmodule.x_module import XModuleDescriptor
import factory import factory
from factory.helpers import lazy_attribute from factory.helpers import lazy_attribute
# Factories don't have __init__ methods, and are self documenting
# pylint: disable=W0232, C0111
class SplitFactory(factory.Factory): class SplitFactory(factory.Factory):
""" """
......
...@@ -26,7 +26,7 @@ from xmodule.modulestore import ModuleStoreEnum ...@@ -26,7 +26,7 @@ from xmodule.modulestore import ModuleStoreEnum
from xmodule.modulestore.mongo import MongoModuleStore, MongoKeyValueStore from xmodule.modulestore.mongo import MongoModuleStore, MongoKeyValueStore
from xmodule.modulestore.draft import DraftModuleStore from xmodule.modulestore.draft import DraftModuleStore
from opaque_keys.edx.locations import SlashSeparatedCourseKey, AssetLocation from opaque_keys.edx.locations import SlashSeparatedCourseKey, AssetLocation
from opaque_keys.edx.keys import UsageKey, CourseKey from opaque_keys.edx.keys import UsageKey
from xmodule.modulestore.xml_exporter import export_to_xml from xmodule.modulestore.xml_exporter import export_to_xml
from xmodule.modulestore.xml_importer import import_from_xml, perform_xlint from xmodule.modulestore.xml_importer import import_from_xml, perform_xlint
from xmodule.contentstore.mongo import MongoContentStore from xmodule.contentstore.mongo import MongoContentStore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment