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 @@ -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)`
160156library, similar to the :mod: `dbm.ndbm ` module, but with additional
161157functionality 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
263262This 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
You can’t perform that action at this time.
0 commit comments