File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff 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)`
205201library, similar to the :mod: `dbm.ndbm ` module, but with additional
206202functionality 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
314313This 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
You can’t perform that action at this time.
0 commit comments