summaryrefslogtreecommitdiff
path: root/Modules/_dbmmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-04-15 23:02:12 -0400
committerLarry Hastings <larry@hastings.org>2015-04-15 23:02:12 -0400
commitb4cbe01f7052efafa91ea6115a9a231d9b5e4279 (patch)
tree35b2704f475e5e825831e1756e222f9fd9ac4e2e /Modules/_dbmmodule.c
parent2a6ec512163e67a3bdbe80ec027d986087e3b608 (diff)
downloadcpython-b4cbe01f7052efafa91ea6115a9a231d9b5e4279.tar.gz
Issue #23935: Argument Clinic's understanding of format units
accepting bytes, bytearrays, and buffers is now consistent with both the documentation and the implementation.
Diffstat (limited to 'Modules/_dbmmodule.c')
-rw-r--r--Modules/_dbmmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c
index bcdea1ddf9..b815e97fd5 100644
--- a/Modules/_dbmmodule.c
+++ b/Modules/_dbmmodule.c
@@ -272,7 +272,7 @@ dbm.dbm.get
self: dbmobject
- key: str(length=True)
+ key: str(types={'str', 'robuffer'}, length=True)
default: object = None
/
@@ -282,7 +282,7 @@ Return the value for key if present, otherwise default.
static PyObject *
dbm_dbm_get_impl(dbmobject *dp, const char *key, Py_ssize_clean_t key_length,
PyObject *default_value)
-/*[clinic end generated code: output=4f5c0e523eaf1251 input=aecf5efd2f2b1a3b]*/
+/*[clinic end generated code: output=4f5c0e523eaf1251 input=f81478bc211895ef]*/
{
datum dbm_key, val;