Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bpo-1635741: Apply code review
  • Loading branch information
corona10 committed Jun 16, 2020
commit e0d98d8a2db149074249c005fe5065b1d957260f
12 changes: 8 additions & 4 deletions Modules/_gdbmmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ gdbm_subscript(gdbmobject *dp, PyObject *key)

/*[clinic input]
_gdbm.gdbm.get

key: object
default: object = None
/
Expand All @@ -209,7 +210,7 @@ Get the value for key, or default if not present.

static PyObject *
_gdbm_gdbm_get_impl(gdbmobject *self, PyObject *key, PyObject *default_value)
/*[clinic end generated code: output=92421838f3a852f4 input=618634935698f696]*/
/*[clinic end generated code: output=92421838f3a852f4 input=a9c20423f34c17b6]*/
{
PyObject *res;

Expand Down Expand Up @@ -268,6 +269,7 @@ gdbm_ass_sub(gdbmobject *dp, PyObject *v, PyObject *w)

/*[clinic input]
_gdbm.gdbm.setdefault

key: object
default: object = None
/
Expand All @@ -278,7 +280,7 @@ Get value for key, or set it to default and return default if not present.
static PyObject *
_gdbm_gdbm_setdefault_impl(gdbmobject *self, PyObject *key,
PyObject *default_value)
/*[clinic end generated code: output=f3246e880509f142 input=8233d2ab10a30d38]*/
/*[clinic end generated code: output=f3246e880509f142 input=0db46b69e9680171]*/
{
PyObject *res;

Expand Down Expand Up @@ -430,6 +432,7 @@ _gdbm_gdbm_firstkey_impl(gdbmobject *self, PyTypeObject *cls)

/*[clinic input]
_gdbm.gdbm.nextkey

cls: defining_class
key: str(accept={str, robuffer}, zeroes=True)
/
Expand All @@ -448,7 +451,7 @@ to create a list in memory that contains them all:
static PyObject *
_gdbm_gdbm_nextkey_impl(gdbmobject *self, PyTypeObject *cls, const char *key,
Py_ssize_clean_t key_length)
/*[clinic end generated code: output=204964441fdbaf02 input=3bfcaf6eaa26c59e]*/
/*[clinic end generated code: output=204964441fdbaf02 input=fcf6a51a96ce0172]*/
{
PyObject *v;
datum dbm_key, nextkey;
Expand Down Expand Up @@ -577,6 +580,7 @@ static PyType_Spec gdbmtype_spec = {

/*[clinic input]
_gdbm.open as dbmopen

filename: unicode
flags: str="r"
mode: int(py_default="0o666") = 0o666
Expand Down Expand Up @@ -609,7 +613,7 @@ when the database has to be created. It defaults to octal 0o666.
static PyObject *
dbmopen_impl(PyObject *module, PyObject *filename, const char *flags,
int mode)
/*[clinic end generated code: output=9527750f5df90764 input=3be0b0875974b928]*/
/*[clinic end generated code: output=9527750f5df90764 input=812b7d74399ceb0e]*/
{
int iflags;
_gdbm_state *state = get_gdbm_state(module);
Expand Down