Skip to content

Commit 7d9ce3c

Browse files
[3.12] Docs: spell out sentence about ndbm/gdbm file formats (GH-115470) (#115476)
(cherry picked from commit 49e8fdc) Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent d258943 commit 7d9ce3c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Doc/library/dbm.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ the Oracle Berkeley DB.
5656
The Unix file access mode of the file (default: octal ``0o666``),
5757
used only when the database has to be created.
5858

59-
.. |incompat_note| replace::
60-
The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
61-
and can not be used interchangeably.
62-
6359
.. function:: open(file, flag='r', mode=0o666)
6460

6561
Open a database and return the corresponding database object.
@@ -160,7 +156,10 @@ The :mod:`dbm.gnu` module provides an interface to the :abbr:`GDBM (GNU dbm)`
160156
library, similar to the :mod:`dbm.ndbm` module, but with additional
161157
functionality like crash tolerance.
162158

163-
.. note:: |incompat_note|
159+
.. note::
160+
161+
The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
162+
and can not be used interchangeably.
164163

165164
.. exception:: error
166165

@@ -263,7 +262,10 @@ The :mod:`dbm.ndbm` module provides an interface to the
263262
This module can be used with the "classic" NDBM interface or the
264263
:abbr:`GDBM (GNU dbm)` compatibility interface.
265264

266-
.. note:: |incompat_note|
265+
.. note::
266+
267+
The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
268+
and can not be used interchangeably.
267269

268270
.. warning::
269271

0 commit comments

Comments
 (0)