Skip to content

Commit 718074f

Browse files
committed
fix: xblock_poll -> xblock_poll_question
The import path `xblock_poll` is taken by the *newer* PollBlock, developed and maintained by OpenCraft: https://github.com/open-craft/xblock-poll We don't want to conflict with that block, so we've made the old formerly- built-in block's path xblock_poll_question, which matches its entrtypoint and XML tag, <poll_question>.
1 parent b94fe47 commit 718074f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

xmodule/poll_block.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from web_fragments.fragment import Fragment
1919
from xblock.core import XBlock
2020
from xblock.fields import Boolean, Dict, List, Scope, String # pylint: disable=wrong-import-order
21-
from xblock_poll import PollBlock as _ExtractedPollBlock
21+
from xblock_poll_question import PollBlock as _ExtractedPollBlock
2222

2323
from openedx.core.djangolib.markup import HTML, Text
2424
from xmodule.mako_block import MakoTemplateBlockBase
@@ -43,8 +43,9 @@ class _BuiltInPollBlock(
4343
Poll Block.
4444
4545
.. deprecated:: 2026-03
46-
This built-in poll block is deprecated. Please use the extracted ``PollBlock``
47-
from ``xblock_poll`` instead.
46+
This built-in poll block will soon be removed. Please use the extracted ``PollBlock``
47+
from ``xblock_poll_question`` instead, which is unsupported but stable. Alternatively, use
48+
https://github.com/open-craft/xblock-poll instead, which is supported and stable.
4849
"""
4950

5051
is_extracted = False
@@ -270,7 +271,7 @@ def reset_class():
270271
warnings.warn(
271272
"The built-in `xmodule.poll_block` PollBlock implementation is deprecated. "
272273
"To fix this warning, enable `USE_EXTRACTED_POLL_QUESTION_BLOCK` (set it to True) to use "
273-
"`xblock_poll.PollBlock` instead. "
274+
"`xblock_poll_question.PollBlock` instead. "
274275
"Support for the built-in implementation, and the `USE_EXTRACTED_POLL_QUESTION_BLOCK` setting, "
275276
"will be removed in Willow.",
276277
DeprecationWarning,

0 commit comments

Comments
 (0)