Skip to content

Commit 0ef6c04

Browse files
committed
Remove GMPNext from main gmp package exports
1 parent 9eb3c51 commit 0ef6c04

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

gvm/protocols/gmp/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,20 @@
99
dynamically selects the supported GMP protocol of the remote manager daemon.
1010
1111
If you need to use a specific GMP version, you can use the :class:`GMPv224`,
12-
:class:`GMPv225`, :class:`GMPv226`, :class:`GMPv227` or :class:`GMPNext` classes.
12+
:class:`GMPv225`, :class:`GMPv226`, or :class:`GMPv227` classes.
1313
1414
* :class:`GMP` - Dynamically select supported GMP protocol of the remote manager daemon.
1515
* :class:`GMPv224` - GMP version 22.4
1616
* :class:`GMPv225` - GMP version 22.5
1717
* :class:`GMPv226` - GMP version 22.6
1818
* :class:`GMPv227` - GMP version 22.7
19-
* :class:`GMPNext` - "next" GMP version, containing unstable features
2019
"""
2120

2221
from ._gmp import GMP
2322
from ._gmp224 import GMPv224
2423
from ._gmp225 import GMPv225
2524
from ._gmp226 import GMPv226
2625
from ._gmp227 import GMPv227
27-
from ._gmpnext import GMPNext
2826

2927
Gmp = GMP # for backwards compatibility
3028

@@ -35,5 +33,4 @@
3533
"GMPv225",
3634
"GMPv226",
3735
"GMPv227",
38-
"GMPNext",
3936
)

gvm/protocols/next.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
- :py:class:`gvm.protocols.ospv1.Osp`
2020
"""
2121

22-
from .gmp import (
22+
from .gmp._gmpnext import (
2323
GMPNext as Gmp,
24-
GMPNext as GMP,
2524
)
2625
from .ospv1 import Osp
2726

tests/protocols/gmp/test_context_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from unittest.mock import MagicMock, patch
88

99
from gvm.errors import GvmError
10-
from gvm.protocols.gmp import Gmp, GMPNext
10+
from gvm.protocols.gmp import Gmp
11+
from gvm.protocols.gmp._gmpnext import GMPNext
1112
from gvm.protocols.gmp._gmp224 import GMPv224
1213
from gvm.protocols.gmp._gmp225 import GMPv225
1314
from gvm.protocols.gmp._gmp226 import GMPv226

tests/protocols/gmpnext/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: GPL-3.0-or-later
44
#
55

6-
from gvm.protocols.gmp import GMPNext
6+
from gvm.protocols.gmp._gmpnext import GMPNext
77

88
from .. import GmpTestCase as BaseGMPTestCase
99

0 commit comments

Comments
 (0)