diff options
author | Larry Hastings <larry@hastings.org> | 2015-05-04 13:59:46 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2015-05-04 13:59:46 (GMT) |
commit | dbfdc380df615fe7e85107ff3954b8fff3ce7741 (patch) | |
tree | 25dd738cb50b260d6822ab76f39697c69e9a44c4 /Modules/_dbmmodule.c | |
parent | cb985563739f00dcccb03189c95deba604155777 (diff) | |
download | cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.zip cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.tar.gz cpython-dbfdc380df615fe7e85107ff3954b8fff3ce7741.tar.bz2 |
Issue #24001: Argument Clinic converters now use accept={type}
instead of types={'type'} to specify the types the converter accepts.
Diffstat (limited to 'Modules/_dbmmodule.c')
-rw-r--r-- | Modules/_dbmmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c index 6c605ea..191cdd6 100644 --- a/Modules/_dbmmodule.c +++ b/Modules/_dbmmodule.c @@ -274,7 +274,7 @@ static PySequenceMethods dbm_as_sequence = { /*[clinic input] _dbm.dbm.get - key: str(types={'str', 'robuffer'}, length=True) + key: str(accept={str, robuffer}, length=True) default: object(c_default="NULL") = b'' / @@ -284,7 +284,7 @@ Return the value for key if present, otherwise default. static PyObject * _dbm_dbm_get_impl(dbmobject *self, const char *key, Py_ssize_clean_t key_length, PyObject *default_value) -/*[clinic end generated code: output=b44f95eba8203d93 input=fee97bbe85e84822]*/ +/*[clinic end generated code: output=b44f95eba8203d93 input=3c7c1afd9c508457]*/ { datum dbm_key, val; @@ -301,7 +301,7 @@ _dbm_dbm_get_impl(dbmobject *self, const char *key, /*[clinic input] _dbm.dbm.setdefault - key: str(types={'str', 'robuffer'}, length=True) + key: str(accept={str, robuffer}, length=True) default: object(c_default="NULL") = b'' / @@ -314,7 +314,7 @@ static PyObject * _dbm_dbm_setdefault_impl(dbmobject *self, const char *key, Py_ssize_clean_t key_length, PyObject *default_value) -/*[clinic end generated code: output=52545886cf272161 input=6a3b99ae91f20203]*/ +/*[clinic end generated code: output=52545886cf272161 input=a66fcb7f18ee2f50]*/ { datum dbm_key, val; Py_ssize_t tmp_size; |