From 334f9efb18c95bb5df3271d26fa0a55b7aec1c7a Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Wed, 1 May 2019 09:20:00 +0200 Subject: [PATCH] fix: pep8 errors Errors have not been detected by broken travis runs. --- gitlab/__init__.py | 2 +- gitlab/v4/objects.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 819096d9b..9532267a9 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -359,7 +359,7 @@ def _set_auth_info(self): def enable_debug(self): import logging try: - from http.client import HTTPConnection + from http.client import HTTPConnection # noqa except ImportError: from httplib import HTTPConnection # noqa diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index da46e9aef..57df67932 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -2001,7 +2001,8 @@ class ProjectReleaseManager(NoUpdateMixin, RESTManager): _path = '/projects/%(project_id)s/releases' _obj_cls = ProjectRelease _from_parent_attrs = {'project_id': 'id'} - _create_attrs = (('name', 'tag_name', 'description', ), ('ref', 'assets', )) + _create_attrs = (('name', 'tag_name', 'description', ), + ('ref', 'assets', )) class ProjectTag(ObjectDeleteMixin, RESTObject):