]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: spell out sentence about ndbm/gdbm file formats (#115470)
authorErlend E. Aasland <erlend@python.org>
Wed, 14 Feb 2024 18:03:20 +0000 (19:03 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2024 18:03:20 +0000 (19:03 +0100)
Doc/library/dbm.rst

index b4f83d454ac6519b206f0aefe0f055e02905f59b..227b55c4315419eb086e15eba6c3e06ca3443b53 100644 (file)
@@ -61,10 +61,6 @@ the Oracle Berkeley DB.
    The Unix file access mode of the file (default: octal ``0o666``),
    used only when the database has to be created.
 
-.. |incompat_note| replace::
-   The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
-   and can not be used interchangeably.
-
 .. function:: open(file, flag='r', mode=0o666)
 
    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)`
 library, similar to the :mod:`dbm.ndbm` module, but with additional
 functionality like crash tolerance.
 
-.. note:: |incompat_note|
+.. note::
+
+   The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
+   and can not be used interchangeably.
 
 .. exception:: error
 
@@ -314,7 +313,10 @@ The :mod:`dbm.ndbm` module provides an interface to the
 This module can be used with the "classic" NDBM interface or the
 :abbr:`GDBM (GNU dbm)` compatibility interface.
 
-.. note:: |incompat_note|
+.. note::
+
+   The file formats created by :mod:`dbm.gnu` and :mod:`dbm.ndbm` are incompatible
+   and can not be used interchangeably.
 
 .. warning::