refactor: normalize xmodule imports
Code in ./common/lib/xmodule/xmodule should be imported as `from xmodule`, since `xmodule` is a locally-installed package. This is weird, but as long as it is the case, we should be consistent. (In BOM-2584, I propose moving the files to ./xmodule, which would quell this confusion.)
This commit is contained in:
committed by
Kyle McCormick
parent
3ef905c79b
commit
d42b0c401d
@@ -12,7 +12,7 @@ import pytz
|
||||
from lxml import etree
|
||||
from web_fragments.fragment import Fragment
|
||||
|
||||
from common.lib.xmodule.xmodule.util.misc import is_xblock_an_assignment
|
||||
from xmodule.util.misc import is_xblock_an_assignment
|
||||
from xblock.core import XBlock # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.mako_module import MakoTemplateBlockBase
|
||||
from xmodule.progress import Progress
|
||||
|
||||
Reference in New Issue
Block a user