Skip to content

Commit 49e8fdc

Browse files
Docs: spell out sentence about ndbm/gdbm file formats (#115470)
1 parent 17773fc commit 49e8fdc

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
@@ -61,10 +61,6 @@ the Oracle Berkeley DB.
6161
The Unix file access mode of the file (default: octal ``0o666``),
6262
used only when the database has to be created.
6363

64-
.. |incompat_note| replace::
65-
The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
66-
and can not be used interchangeably.
67-
6864
.. function:: open(file, flag='r', mode=0o666)
6965

7066
Open a database and return the corresponding database object.
@@ -205,7 +201,10 @@ The :mod:`dbm.gnu` module provides an interface to the :abbr:`GDBM (GNU dbm)`
205201
library, similar to the :mod:`dbm.ndbm` module, but with additional
206202
functionality like crash tolerance.
207203

208-
.. note:: |incompat_note|
204+
.. note::
205+
206+
The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
207+
and can not be used interchangeably.
209208

210209
.. exception:: error
211210

@@ -314,7 +313,10 @@ The :mod:`dbm.ndbm` module provides an interface to the
314313
This module can be used with the "classic" NDBM interface or the
315314
:abbr:`GDBM (GNU dbm)` compatibility interface.
316315

317-
.. note:: |incompat_note|
316+
.. note::
317+
318+
The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
319+
and can not be used interchangeably.
318320

319321
.. warning::
320322

0 commit comments

Comments
 (0)