Skip to content

Commit 8a4e7d5

Browse files
committed
style: pylint issues
1 parent 106e440 commit 8a4e7d5

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

openedx/core/djangoapps/content_libraries/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,3 @@ def save(self, *args, **kwargs): # lint-amnesty, pylint: disable=arguments-diff
164164
def __str__(self):
165165
who = self.user.username if self.user else self.group.name
166166
return f"ContentLibraryPermission ({self.access_level} for {who})"
167-
168-

openedx/core/djangoapps/content_libraries/rest_api/libraries.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
from rest_framework.generics import GenericAPIView
8484
from rest_framework.response import Response
8585
from rest_framework.views import APIView
86-
from rest_framework.viewsets import GenericViewSet
8786
from user_tasks.models import UserTaskStatus
8887

8988
from cms.djangoapps.contentstore.storage import course_import_export_storage
@@ -113,7 +112,6 @@
113112
from openedx.core.djangoapps.content_libraries.tasks import backup_library, restore_library
114113
from openedx.core.lib.api.view_utils import view_auth_classes
115114

116-
from ..models import ContentLibrary
117115
from .utils import convert_exceptions
118116

119117
User = get_user_model()
@@ -855,5 +853,3 @@ def get(self, request):
855853
# serialize and return result
856854
result_serializer = LibraryRestoreTaskResultSerializer.from_task_status(task_status, request)
857855
return Response(result_serializer.data)
858-
859-

openedx/core/djangoapps/content_libraries/tests/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from unittest import mock
77

88
from django.db import transaction
9-
from django.test import TestCase
109
from opaque_keys.edx.keys import UsageKeyV2
1110
from opaque_keys.edx.locator import LibraryContainerLocator, LibraryLocatorV2, LibraryUsageLocatorV2
1211
from openedx_authz.api.users import get_user_role_assignments_in_scope

openedx/core/djangoapps/content_libraries/tests/test_models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
from django.test import TestCase
7-
from opaque_keys.edx.locator import LibraryLocatorV2
87
from organizations.models import Organization
98

109
from ..models import ALL_RIGHTS_RESERVED, ContentLibrary
@@ -28,4 +27,3 @@ def _create_library(self, **kwds):
2827
license=ALL_RIGHTS_RESERVED,
2928
**kwds,
3029
)
31-

0 commit comments

Comments
 (0)