Skip to content

Commit 214f7ef

Browse files
authored
Merge pull request #892 from godaji/remove-unused-code
Remove unused code and simplify string format.
2 parents d7d2260 + c7ff676 commit 214f7ef

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

gitlab/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def total(self):
227227
class RESTManager(object):
228228
"""Base class for CRUD operations on objects.
229229
230-
Derivated class must define ``_path`` and ``_obj_cls``.
230+
Derived class must define ``_path`` and ``_obj_cls``.
231231
232232
``_path``: Base URL path on which requests will be sent (e.g. '/projects')
233233
``_obj_cls``: The class of objects that will be created

gitlab/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _get_base_parser(add_help=True):
9898
"-c",
9999
"--config-file",
100100
action="append",
101-
help=("Configuration file to use. Can be used " "multiple times."),
101+
help="Configuration file to use. Can be used multiple times.",
102102
)
103103
parser.add_argument(
104104
"-g",

gitlab/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, gitlab_id=None, config_files=None):
6363
self.gitlab_id = self._config.get("global", "default")
6464
except Exception:
6565
raise GitlabIDError(
66-
"Impossible to get the gitlab id " "(not specified in config file)"
66+
"Impossible to get the gitlab id (not specified in config file)"
6767
)
6868

6969
try:

gitlab/tests/test_base.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ class MGR(base.RESTManager):
5656
class Parent(object):
5757
id = 42
5858

59-
class BrokenParent(object):
60-
no_id = 0
61-
6259
mgr = MGR(FakeGitlab(), parent=Parent())
6360
self.assertEqual(mgr._computed_path, "/tests/42/cases")
6461

0 commit comments

Comments
 (0)