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:
Kyle McCormick
2021-03-14 20:28:25 -04:00
committed by Kyle McCormick
parent 3ef905c79b
commit d42b0c401d
13 changed files with 16 additions and 16 deletions

View File

@@ -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