Skip to content

Commit

Permalink
chore: rename ExportMixin to DownloadMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch committed Apr 5, 2020
1 parent 8c3d744 commit 847da60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gitlab/mixins.py
Expand Up @@ -443,7 +443,7 @@ def approve(self, access_level=gitlab.DEVELOPER_ACCESS, **kwargs):
self._update_attrs(server_data)


class ExportMixin(object):
class DownloadMixin(object):
@cli.register_custom_action(("GroupExport", "ProjectExport"))
@exc.on_http_error(exc.GitlabGetError)
def download(self, streamed=False, action=None, chunk_size=1024, **kwargs):
Expand Down
4 changes: 2 additions & 2 deletions gitlab/v4/objects.py
Expand Up @@ -991,7 +991,7 @@ class GroupEpicManager(CRUDMixin, RESTManager):
_types = {"labels": types.ListAttribute}


class GroupExport(ExportMixin, RESTObject):
class GroupExport(DownloadMixin, RESTObject):
_id_attr = None


Expand Down Expand Up @@ -4147,7 +4147,7 @@ class ProjectWikiManager(CRUDMixin, RESTManager):
_list_filters = ("with_content",)


class ProjectExport(ExportMixin, RefreshMixin, RESTObject):
class ProjectExport(DownloadMixin, RefreshMixin, RESTObject):
_id_attr = None


Expand Down

0 comments on commit 847da60

Please sign in to comment.