Skip to content

Commit

Permalink
refactor: remove xblockutils package
Browse files Browse the repository at this point in the history
  • Loading branch information
farhan committed Oct 26, 2023
1 parent fdd2cb4 commit b1cad2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 6 additions & 2 deletions google_drive/google_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
from xblock.core import XBlock
from xblock.fields import Integer, Scope, String
from web_fragments.fragment import Fragment
from xblockutils.publish_event import PublishEventMixin
from xblockutils.resources import ResourceLoader
try:
from xblock.utils.publish_event import PublishEventMixin
from xblock.utils.resources import ResourceLoader
except ModuleNotFoundError: # For backward compatibility with releases older than Quince.
from xblockutils.publish_event import PublishEventMixin
from xblockutils.resources import ResourceLoader

LOG = logging.getLogger(__name__)
RESOURCE_LOADER = ResourceLoader(__name__)
Expand Down
8 changes: 6 additions & 2 deletions google_drive/google_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
from xblock.core import XBlock
from xblock.fields import Scope, String
from web_fragments.fragment import Fragment
from xblockutils.publish_event import PublishEventMixin
from xblockutils.resources import ResourceLoader
try:
from xblock.utils.publish_event import PublishEventMixin
from xblock.utils.resources import ResourceLoader
except ModuleNotFoundError: # For backward compatibility with releases older than Quince.
from xblockutils.publish_event import PublishEventMixin
from xblockutils.resources import ResourceLoader
import six

LOG = logging.getLogger(__name__)
Expand Down
2 changes: 0 additions & 2 deletions requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
-c constraints.txt

Django # Web application framework
mako # Used by xblock-utils.resources, but not declared as a requirement for it
requests
XBlock[django] # Courseware component architecture
xblock-utils

0 comments on commit b1cad2b

Please sign in to comment.