Skip to content

Commit

Permalink
refactor: use XBlock instead of xblock-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrendalath committed May 9, 2024
1 parent df96ca9 commit 0b5c696
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions poll/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,19 @@
import pkg_resources
from django import utils
from markdown import markdown
from web_fragments.fragment import Fragment
from webob import Response
from xblock.completable import XBlockCompletionMode
from xblock.core import XBlock
from xblock.fields import Boolean, Dict, Integer, List, Scope, String
from web_fragments.fragment import Fragment
from xblockutils.publish_event import PublishEventMixin
from xblockutils.resources import ResourceLoader
from xblockutils.settings import ThemableXBlockMixin, XBlockWithSettingsMixin
try:
from xblock.utils.publish_event import PublishEventMixin
from xblock.utils.resources import ResourceLoader
from xblock.utils.settings import ThemableXBlockMixin, XBlockWithSettingsMixin
except ModuleNotFoundError: # For backward compatibility with releases older than Quince.
from xblockutils.publish_event import PublishEventMixin
from xblockutils.resources import ResourceLoader
from xblockutils.settings import ThemableXBlockMixin, XBlockWithSettingsMixin

from .utils import DummyTranslationService, _, remove_markdown_and_html_tags

Expand Down

0 comments on commit 0b5c696

Please sign in to comment.