Skip to content

Commit

Permalink
Merge pull request #186 from openedx/farhan/remove-xblockutils
Browse files Browse the repository at this point in the history
Support backward compatibility for Quince earlier releases
  • Loading branch information
farhan authored Nov 2, 2023
2 parents 329b6e9 + c474cb4 commit 18efb1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion done/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from .done import DoneXBlock

__version__ = '2.1.0'
__version__ = '2.2.0'
5 changes: 4 additions & 1 deletion done/done.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
from web_fragments.fragment import Fragment
from xblock.core import XBlock
from xblock.fields import Boolean, DateTime, Float, Scope, String
from xblock.utils.resources import ResourceLoader
try:
from xblock.utils.resources import ResourceLoader
except ModuleNotFoundError: # For backward compatibility with releases older than Quince.
from xblockutils.resources import ResourceLoader

resource_loader = ResourceLoader(__name__)

Expand Down

0 comments on commit 18efb1f

Please sign in to comment.