@@ -37,33 +37,6 @@ class Mode(_enum.Enum):
37
37
mode = Mode .JPYPE
38
38
39
39
40
- def add_endpoints (* new_endpoints ):
41
- """
42
- DEPRECATED since v1.2.1
43
- Please modify the endpoints field directly instead.
44
- """
45
- _logger .warning (
46
- "Deprecated method call: scyjava.config.add_endpoints(). "
47
- "Please modify scyjava.config.endpoints directly instead."
48
- )
49
- global endpoints
50
- _logger .debug ("Adding endpoints %s to %s" , new_endpoints , endpoints )
51
- endpoints .extend (new_endpoints )
52
-
53
-
54
- def get_endpoints ():
55
- """
56
- DEPRECATED since v1.2.1
57
- Please access the endpoints field directly instead.
58
- """
59
- _logger .warning (
60
- "Deprecated method call: scyjava.config.get_endpoints(). "
61
- "Please access scyjava.config.endpoints directly instead."
62
- )
63
- global endpoints
64
- return endpoints
65
-
66
-
67
40
def add_repositories (* args , ** kwargs ) -> None :
68
41
"""
69
42
Add one or more Maven repositories to be used by jgo for downloading dependencies.
@@ -358,3 +331,30 @@ def get_shortcuts() -> dict[str, str]:
358
331
"""
359
332
global _shortcuts
360
333
return _shortcuts
334
+
335
+
336
+ def add_endpoints (* new_endpoints ):
337
+ """
338
+ DEPRECATED since v1.2.1
339
+ Please modify the endpoints field directly instead.
340
+ """
341
+ _logger .warning (
342
+ "Deprecated method call: scyjava.config.add_endpoints(). "
343
+ "Please modify scyjava.config.endpoints directly instead."
344
+ )
345
+ global endpoints
346
+ _logger .debug ("Adding endpoints %s to %s" , new_endpoints , endpoints )
347
+ endpoints .extend (new_endpoints )
348
+
349
+
350
+ def get_endpoints ():
351
+ """
352
+ DEPRECATED since v1.2.1
353
+ Please access the endpoints field directly instead.
354
+ """
355
+ _logger .warning (
356
+ "Deprecated method call: scyjava.config.get_endpoints(). "
357
+ "Please access scyjava.config.endpoints directly instead."
358
+ )
359
+ global endpoints
360
+ return endpoints
0 commit comments