Skip to content

Commit

Permalink
style: string_to_version removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV committed Dec 3, 2024
1 parent 401098a commit 6eaa7ff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions openedx/core/djangoapps/xblock/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,3 @@ def get_handler_url(
# can be called by the XBlock from python as well and in that case we don't
# have access to the request.
return site_root_url + path


def string_to_version(version: str | None) -> LatestVersion | int:
""" Convert from string to LatestVersion or integer version spec """
return VersionConverter().to_python(version)

0 comments on commit 6eaa7ff

Please sign in to comment.