Skip to content

Commit 9eb204a

Browse files
committed
Remove unused code and simplify string format.
1 parent ba2b60e commit 9eb204a

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
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 & 4 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

@@ -93,7 +90,6 @@ def test_pickability(self):
9390
self.assertIsInstance(unpickled, FakeObject)
9491
self.assertTrue(hasattr(unpickled, "_module"))
9592
self.assertEqual(unpickled._module, original_obj_module)
96-
pickled2 = pickle.dumps(unpickled)
9793

9894
def test_attrs(self):
9995
obj = FakeObject(self.manager, {"foo": "bar"})

0 commit comments

Comments
 (0)