Skip to content

Commit 5d75281

Browse files
committed
Lint and base.py -> mixins.py file rename
1 parent ea52919 commit 5d75281

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

readthedocs/storage/azure_storage.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
# pylint: disable=abstract-method
2+
# Disable: Method 'path' is abstract in class 'Storage' but is not overridden
3+
4+
"""Django storage classes to use with Azure Blob storage service."""
5+
16
from azure.common import AzureMissingResourceHttpError
27
from django.conf import settings
38
from django.contrib.staticfiles.storage import ManifestFilesMixin
49
from storages.backends.azure_storage import AzureStorage
510

611
from readthedocs.builds.storage import BuildMediaStorageMixin
712

8-
from .base import OverrideHostnameMixin
13+
from .mixins import OverrideHostnameMixin
914

1015

1116
class AzureBuildMediaStorage(BuildMediaStorageMixin, OverrideHostnameMixin, AzureStorage):

readthedocs/storage/base.py renamed to readthedocs/storage/mixins.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
"""Django storage mixin classes for different storage backends (Azure, S3)."""
2+
13
from urllib.parse import urlsplit, urlunsplit
24

5+
36
class OverrideHostnameMixin:
47

58
"""

0 commit comments

Comments
 (0)