]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: spell out sentence about ndbm/gdbm file formats (GH-115470) (#115477)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 14 Feb 2024 18:10:06 +0000 (19:10 +0100)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2024 18:10:06 +0000 (18:10 +0000)
(cherry picked from commit 49e8fdc1df41b6547fb3255f9e3a44dfb3b81fe0)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Doc/library/dbm.rst

index babff3bc1fec64fb964dcb463d87410d399754e2..74f96b6c433577bbec83e94582a3d2d150126a79 100644 (file)
@@ -56,10 +56,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.
@@ -160,7 +156,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
 
@@ -263,7 +262,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::