From c246ba2e9bc6ab1fcea33b20af008993073c65f1 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Wed, 3 Feb 2021 12:18:09 +0500 Subject: [PATCH] BOM-2315 Apply pylint-amnesty. --- openedx/core/djangoapps/ace_common/__init__.py | 3 ++- openedx/core/djangoapps/bookmarks/__init__.py | 3 ++- openedx/core/djangoapps/bookmarks/models.py | 4 +--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openedx/core/djangoapps/ace_common/__init__.py b/openedx/core/djangoapps/ace_common/__init__.py index be8af74382..c4dc3579bc 100644 --- a/openedx/core/djangoapps/ace_common/__init__.py +++ b/openedx/core/djangoapps/ace_common/__init__.py @@ -1,4 +1,5 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" +# lint-amnesty, pylint: disable=django-not-configured ace_common is a Django App that provides common utilities and templates for edx-platform applications that use ACE as their messaging framework. """ diff --git a/openedx/core/djangoapps/bookmarks/__init__.py b/openedx/core/djangoapps/bookmarks/__init__.py index 539ec9a834..6901948021 100644 --- a/openedx/core/djangoapps/bookmarks/__init__.py +++ b/openedx/core/djangoapps/bookmarks/__init__.py @@ -1,4 +1,5 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" +# lint-amnesty, pylint: disable=django-not-configured # lint-amnesty, pylint: disable=django-not-configured # lint-amnesty, pylint: disable=django-not-configured Bookmarks module. """ diff --git a/openedx/core/djangoapps/bookmarks/models.py b/openedx/core/djangoapps/bookmarks/models.py index cdc7d1c38b..2e4f353af3 100644 --- a/openedx/core/djangoapps/bookmarks/models.py +++ b/openedx/core/djangoapps/bookmarks/models.py @@ -6,7 +6,7 @@ Models for Bookmarks. import logging import six -from django.contrib.auth.models import User +from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user from django.db import models from django.utils.encoding import python_2_unicode_compatible from jsonfield.fields import JSONField @@ -42,7 +42,6 @@ def parse_path_data(path_data): return path -@python_2_unicode_compatible class Bookmark(TimeStampedModel): """ Bookmarks model. @@ -193,7 +192,6 @@ class Bookmark(TimeStampedModel): return path_data -@python_2_unicode_compatible class XBlockCache(TimeStampedModel): """ XBlockCache model to store info about xblocks.