@@ -8,19 +8,18 @@ Replacing Deprecated Functions
88 the module level. The preferred way of using semver is through the
99 :class: `~semver.version.Version ` class.
1010
11- The deprecated functions can still be used in version 2.10.0 and above. In version 3 of
12- semver, the deprecated functions will be removed.
11+ The deprecated functions can still be used in version 2.10.0 and above. However, in
12+ future versions of semver, the deprecated functions will be removed.
1313
1414The following list shows the deprecated functions and how you can replace
1515them with code which is compatible for future versions:
1616
17-
1817* :func: `semver.bump_major `, :func: `semver.bump_minor `, :func: `semver.bump_patch `, :func: `semver.bump_prerelease `, :func: `semver.bump_build `
1918
2019 Replace them with the respective methods of the :class: `~semver.version.Version `
2120 class.
2221 For example, the function :func: `semver.bump_major ` is replaced by
23- :meth: `~ semver.version.Version.bump_major ` and calling the ``str(versionobject) ``:
22+ :meth: `Version.bump_major < semver.version.Version.bump_major> ` and calling the ``str(versionobject) ``:
2423
2524 .. code-block :: python
2625
@@ -31,14 +30,14 @@ them with code which is compatible for future versions:
3130
3231 Likewise with the other module level functions.
3332
34- * :func : `semver.Version.isvalid `
33+ * :meth : `semver.Version.isvalid `
3534
36- Replace it with :meth: `semver.version.Version.is_valid `:
35+ Replace it with :meth: `Version.is_valid < semver.version.Version.is_valid> `:
3736
3837
3938* :func: `semver.finalize_version `
4039
41- Replace it with :func: ` semver.version.Version.finalize_version `:
40+ Replace it with :meth: ` Version.finalize_version < semver.version.Version.finalize_version> `:
4241
4342 .. code-block :: python
4443
@@ -71,7 +70,7 @@ them with code which is compatible for future versions:
7170
7271 * :func: `semver.min_ver `
7372
74- Replace it with ``min(version1, version2, ...) `` or ``min([version1, version2, ...]) ``:
73+ Replace it with ``min(version1, version2, ...) `` or ``min([version1, version2, ...]) `` and a `` key `` :
7574
7675 .. code-block :: python
7776
@@ -82,8 +81,8 @@ them with code which is compatible for future versions:
8281
8382 * :func: `semver.parse `
8483
85- Replace it with :meth: `semver.version.Version.parse ` and call
86- :meth: `semver.version.Version.to_dict `:
84+ Replace it with :meth: `Version.parse < semver.version.Version.parse> ` and call
85+ :meth: `Version.to_dict < semver.version.Version.to_dict> `:
8786
8887 .. code-block :: python
8988
@@ -94,7 +93,7 @@ them with code which is compatible for future versions:
9493
9594 * :func: `semver.parse_version_info `
9695
97- Replace it with :meth: `semver.version.Version.parse `:
96+ Replace it with :meth: `Version.parse < semver.version.Version.parse> `:
9897
9998 .. code-block :: python
10099
@@ -105,7 +104,7 @@ them with code which is compatible for future versions:
105104
106105 * :func: `semver.replace `
107106
108- Replace it with :meth: `semver.version.Version.replace `:
107+ Replace it with :meth: `Version.replace < semver.version.Version.replace> `:
109108
110109 .. code-block :: python
111110
0 commit comments