Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
02cbf4ae
Commit
02cbf4ae
authored
Feb 27, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More unconsting.
parent
f4e6928c
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
56 additions
and
62 deletions
+56
-62
Modules/_bisectmodule.c
Modules/_bisectmodule.c
+4
-4
Modules/_bsddb.c
Modules/_bsddb.c
+33
-33
Modules/_csv.c
Modules/_csv.c
+1
-1
Modules/_elementtree.c
Modules/_elementtree.c
+1
-7
Modules/cjkcodecs/multibytecodec.c
Modules/cjkcodecs/multibytecodec.c
+2
-2
Modules/datetimemodule.c
Modules/datetimemodule.c
+11
-11
Modules/itertoolsmodule.c
Modules/itertoolsmodule.c
+1
-1
Modules/mmapmodule.c
Modules/mmapmodule.c
+2
-2
Modules/socketmodule.c
Modules/socketmodule.c
+1
-1
No files found.
Modules/_bisectmodule.c
View file @
02cbf4ae
...
@@ -40,7 +40,7 @@ bisect_right(PyObject *self, PyObject *args, PyObject *kw)
...
@@ -40,7 +40,7 @@ bisect_right(PyObject *self, PyObject *args, PyObject *kw)
int
lo
=
0
;
int
lo
=
0
;
int
hi
=
-
1
;
int
hi
=
-
1
;
int
index
;
int
index
;
static
c
onst
c
har
*
keywords
[]
=
{
"a"
,
"x"
,
"lo"
,
"hi"
,
NULL
};
static
char
*
keywords
[]
=
{
"a"
,
"x"
,
"lo"
,
"hi"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"OO|ii:bisect_right"
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"OO|ii:bisect_right"
,
keywords
,
&
list
,
&
item
,
&
lo
,
&
hi
))
keywords
,
&
list
,
&
item
,
&
lo
,
&
hi
))
...
@@ -70,7 +70,7 @@ insort_right(PyObject *self, PyObject *args, PyObject *kw)
...
@@ -70,7 +70,7 @@ insort_right(PyObject *self, PyObject *args, PyObject *kw)
int
lo
=
0
;
int
lo
=
0
;
int
hi
=
-
1
;
int
hi
=
-
1
;
int
index
;
int
index
;
static
c
onst
c
har
*
keywords
[]
=
{
"a"
,
"x"
,
"lo"
,
"hi"
,
NULL
};
static
char
*
keywords
[]
=
{
"a"
,
"x"
,
"lo"
,
"hi"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"OO|ii:insort_right"
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"OO|ii:insort_right"
,
keywords
,
&
list
,
&
item
,
&
lo
,
&
hi
))
keywords
,
&
list
,
&
item
,
&
lo
,
&
hi
))
...
@@ -137,7 +137,7 @@ bisect_left(PyObject *self, PyObject *args, PyObject *kw)
...
@@ -137,7 +137,7 @@ bisect_left(PyObject *self, PyObject *args, PyObject *kw)
int
lo
=
0
;
int
lo
=
0
;
int
hi
=
-
1
;
int
hi
=
-
1
;
int
index
;
int
index
;
static
c
onst
c
har
*
keywords
[]
=
{
"a"
,
"x"
,
"lo"
,
"hi"
,
NULL
};
static
char
*
keywords
[]
=
{
"a"
,
"x"
,
"lo"
,
"hi"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"OO|ii:bisect_left"
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"OO|ii:bisect_left"
,
keywords
,
&
list
,
&
item
,
&
lo
,
&
hi
))
keywords
,
&
list
,
&
item
,
&
lo
,
&
hi
))
...
@@ -167,7 +167,7 @@ insort_left(PyObject *self, PyObject *args, PyObject *kw)
...
@@ -167,7 +167,7 @@ insort_left(PyObject *self, PyObject *args, PyObject *kw)
int
lo
=
0
;
int
lo
=
0
;
int
hi
=
-
1
;
int
hi
=
-
1
;
int
index
;
int
index
;
static
c
onst
c
har
*
keywords
[]
=
{
"a"
,
"x"
,
"lo"
,
"hi"
,
NULL
};
static
char
*
keywords
[]
=
{
"a"
,
"x"
,
"lo"
,
"hi"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"OO|ii:insort_left"
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"OO|ii:insort_left"
,
keywords
,
&
list
,
&
item
,
&
lo
,
&
hi
))
keywords
,
&
list
,
&
item
,
&
lo
,
&
hi
))
...
...
Modules/_bsddb.c
View file @
02cbf4ae
...
@@ -651,7 +651,7 @@ static PyObject* _DBCursor_get(DBCursorObject* self, int extra_flags,
...
@@ -651,7 +651,7 @@ static PyObject* _DBCursor_get(DBCursorObject* self, int extra_flags,
int
dlen
=
-
1
;
int
dlen
=
-
1
;
int
doff
=
-
1
;
int
doff
=
-
1
;
int
flags
=
0
;
int
flags
=
0
;
static
c
onst
c
har
*
kwnames
[]
=
{
"flags"
,
"dlen"
,
"doff"
,
NULL
};
static
char
*
kwnames
[]
=
{
"flags"
,
"dlen"
,
"doff"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
format
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
format
,
kwnames
,
&
flags
,
&
dlen
,
&
doff
))
&
flags
,
&
dlen
,
&
doff
))
...
@@ -1150,10 +1150,10 @@ DB_associate(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1150,10 +1150,10 @@ DB_associate(DBObject* self, PyObject* args, PyObject* kwargs)
#if (DBVER >= 41)
#if (DBVER >= 41)
PyObject
*
txnobj
=
NULL
;
PyObject
*
txnobj
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"secondaryDB"
,
"callback"
,
"flags"
,
"txn"
,
static
char
*
kwnames
[]
=
{
"secondaryDB"
,
"callback"
,
"flags"
,
"txn"
,
NULL
};
NULL
};
#else
#else
static
c
onst
c
har
*
kwnames
[]
=
{
"secondaryDB"
,
"callback"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"secondaryDB"
,
"callback"
,
"flags"
,
NULL
};
#endif
#endif
#if (DBVER >= 41)
#if (DBVER >= 41)
...
@@ -1259,7 +1259,7 @@ _DB_consume(DBObject* self, PyObject* args, PyObject* kwargs, int consume_flag)
...
@@ -1259,7 +1259,7 @@ _DB_consume(DBObject* self, PyObject* args, PyObject* kwargs, int consume_flag)
PyObject
*
retval
=
NULL
;
PyObject
*
retval
=
NULL
;
DBT
key
,
data
;
DBT
key
,
data
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"txn"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"txn"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:consume"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:consume"
,
kwnames
,
&
txnobj
,
&
flags
))
&
txnobj
,
&
flags
))
...
@@ -1329,7 +1329,7 @@ DB_cursor(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1329,7 +1329,7 @@ DB_cursor(DBObject* self, PyObject* args, PyObject* kwargs)
DBC
*
dbc
;
DBC
*
dbc
;
PyObject
*
txnobj
=
NULL
;
PyObject
*
txnobj
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"txn"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"txn"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:cursor"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:cursor"
,
kwnames
,
&
txnobj
,
&
flags
))
&
txnobj
,
&
flags
))
...
@@ -1354,7 +1354,7 @@ DB_delete(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1354,7 +1354,7 @@ DB_delete(DBObject* self, PyObject* args, PyObject* kwargs)
PyObject
*
keyobj
;
PyObject
*
keyobj
;
DBT
key
;
DBT
key
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"txn"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"key"
,
"txn"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|Oi:delete"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|Oi:delete"
,
kwnames
,
&
keyobj
,
&
txnobj
,
&
flags
))
&
keyobj
,
&
txnobj
,
&
flags
))
...
@@ -1406,7 +1406,7 @@ DB_get(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1406,7 +1406,7 @@ DB_get(DBObject* self, PyObject* args, PyObject* kwargs)
int
doff
=
-
1
;
int
doff
=
-
1
;
DBT
key
,
data
;
DBT
key
,
data
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"default"
,
"txn"
,
"flags"
,
"dlen"
,
static
char
*
kwnames
[]
=
{
"key"
,
"default"
,
"txn"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
"doff"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|OOiii:get"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|OOiii:get"
,
kwnames
,
...
@@ -1474,7 +1474,7 @@ DB_pget(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1474,7 +1474,7 @@ DB_pget(DBObject* self, PyObject* args, PyObject* kwargs)
int
doff
=
-
1
;
int
doff
=
-
1
;
DBT
key
,
pkey
,
data
;
DBT
key
,
pkey
,
data
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"default"
,
"txn"
,
"flags"
,
"dlen"
,
static
char
*
kwnames
[]
=
{
"key"
,
"default"
,
"txn"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
"doff"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|OOiii:pget"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|OOiii:pget"
,
kwnames
,
...
@@ -1572,7 +1572,7 @@ DB_get_size(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1572,7 +1572,7 @@ DB_get_size(DBObject* self, PyObject* args, PyObject* kwargs)
PyObject
*
retval
=
NULL
;
PyObject
*
retval
=
NULL
;
DBT
key
,
data
;
DBT
key
,
data
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"txn"
,
NULL
};
static
char
*
kwnames
[]
=
{
"key"
,
"txn"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|O:get_size"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|O:get_size"
,
kwnames
,
&
keyobj
,
&
txnobj
))
&
keyobj
,
&
txnobj
))
...
@@ -1615,7 +1615,7 @@ DB_get_both(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1615,7 +1615,7 @@ DB_get_both(DBObject* self, PyObject* args, PyObject* kwargs)
PyObject
*
retval
=
NULL
;
PyObject
*
retval
=
NULL
;
DBT
key
,
data
;
DBT
key
,
data
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"data"
,
"txn"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"key"
,
"data"
,
"txn"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"OO|Oi:get_both"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"OO|Oi:get_both"
,
kwnames
,
...
@@ -1766,7 +1766,7 @@ DB_key_range(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1766,7 +1766,7 @@ DB_key_range(DBObject* self, PyObject* args, PyObject* kwargs)
DBT
key
;
DBT
key
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_KEY_RANGE
range
;
DB_KEY_RANGE
range
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"txn"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"key"
,
"txn"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|Oi:key_range"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"O|Oi:key_range"
,
kwnames
,
&
keyobj
,
&
txnobj
,
&
flags
))
&
keyobj
,
&
txnobj
,
&
flags
))
...
@@ -1797,17 +1797,17 @@ DB_open(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1797,17 +1797,17 @@ DB_open(DBObject* self, PyObject* args, PyObject* kwargs)
PyObject
*
txnobj
=
NULL
;
PyObject
*
txnobj
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
/* with dbname */
/* with dbname */
static
c
onst
c
har
*
kwnames
[]
=
{
static
char
*
kwnames
[]
=
{
"filename"
,
"dbname"
,
"dbtype"
,
"flags"
,
"mode"
,
"txn"
,
NULL
};
"filename"
,
"dbname"
,
"dbtype"
,
"flags"
,
"mode"
,
"txn"
,
NULL
};
/* without dbname */
/* without dbname */
static
const
char
*
kwnames_basic
[]
=
{
static
const
char
*
kwnames_basic
[]
=
{
"filename"
,
"dbtype"
,
"flags"
,
"mode"
,
"txn"
,
NULL
};
"filename"
,
"dbtype"
,
"flags"
,
"mode"
,
"txn"
,
NULL
};
#else
#else
/* with dbname */
/* with dbname */
static
c
onst
c
har
*
kwnames
[]
=
{
static
char
*
kwnames
[]
=
{
"filename"
,
"dbname"
,
"dbtype"
,
"flags"
,
"mode"
,
NULL
};
"filename"
,
"dbname"
,
"dbtype"
,
"flags"
,
"mode"
,
NULL
};
/* without dbname */
/* without dbname */
static
c
onst
c
har
*
kwnames_basic
[]
=
{
static
char
*
kwnames_basic
[]
=
{
"filename"
,
"dbtype"
,
"flags"
,
"mode"
,
NULL
};
"filename"
,
"dbtype"
,
"flags"
,
"mode"
,
NULL
};
#endif
#endif
...
@@ -1891,7 +1891,7 @@ DB_put(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1891,7 +1891,7 @@ DB_put(DBObject* self, PyObject* args, PyObject* kwargs)
PyObject
*
keyobj
,
*
dataobj
,
*
retval
;
PyObject
*
keyobj
,
*
dataobj
,
*
retval
;
DBT
key
,
data
;
DBT
key
,
data
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"data"
,
"txn"
,
"flags"
,
"dlen"
,
static
char
*
kwnames
[]
=
{
"key"
,
"data"
,
"txn"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
"doff"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"OO|Oiii:put"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"OO|Oiii:put"
,
kwnames
,
...
@@ -1932,7 +1932,7 @@ DB_remove(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -1932,7 +1932,7 @@ DB_remove(DBObject* self, PyObject* args, PyObject* kwargs)
char
*
filename
;
char
*
filename
;
char
*
database
=
NULL
;
char
*
database
=
NULL
;
int
err
,
flags
=
0
;
int
err
,
flags
=
0
;
static
c
onst
c
har
*
kwnames
[]
=
{
"filename"
,
"dbname"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"filename"
,
"dbname"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"s|zi:remove"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"s|zi:remove"
,
kwnames
,
&
filename
,
&
database
,
&
flags
))
&
filename
,
&
database
,
&
flags
))
...
@@ -2350,9 +2350,9 @@ DB_stat(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -2350,9 +2350,9 @@ DB_stat(DBObject* self, PyObject* args, PyObject* kwargs)
#if (DBVER >= 43)
#if (DBVER >= 43)
PyObject
*
txnobj
=
NULL
;
PyObject
*
txnobj
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"txn"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"txn"
,
"flags"
,
NULL
};
#else
#else
static
c
onst
c
har
*
kwnames
[]
=
{
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"flags"
,
NULL
};
#endif
#endif
#if (DBVER >= 43)
#if (DBVER >= 43)
...
@@ -2492,7 +2492,7 @@ DB_truncate(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -2492,7 +2492,7 @@ DB_truncate(DBObject* self, PyObject* args, PyObject* kwargs)
u_int32_t
count
=
0
;
u_int32_t
count
=
0
;
PyObject
*
txnobj
=
NULL
;
PyObject
*
txnobj
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"txn"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"txn"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:cursor"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:cursor"
,
kwnames
,
&
txnobj
,
&
flags
))
&
txnobj
,
&
flags
))
...
@@ -2536,7 +2536,7 @@ DB_verify(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -2536,7 +2536,7 @@ DB_verify(DBObject* self, PyObject* args, PyObject* kwargs)
char
*
dbName
=
NULL
;
char
*
dbName
=
NULL
;
char
*
outFileName
=
NULL
;
char
*
outFileName
=
NULL
;
FILE
*
outFile
=
NULL
;
FILE
*
outFile
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"filename"
,
"dbname"
,
"outfile"
,
"flags"
,
static
char
*
kwnames
[]
=
{
"filename"
,
"dbname"
,
"outfile"
,
"flags"
,
NULL
};
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"s|zzi:verify"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"s|zzi:verify"
,
kwnames
,
...
@@ -2594,7 +2594,7 @@ DB_set_encrypt(DBObject* self, PyObject* args, PyObject* kwargs)
...
@@ -2594,7 +2594,7 @@ DB_set_encrypt(DBObject* self, PyObject* args, PyObject* kwargs)
int
err
;
int
err
;
u_int32_t
flags
=
0
;
u_int32_t
flags
=
0
;
char
*
passwd
=
NULL
;
char
*
passwd
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"passwd"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"passwd"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"s|i:set_encrypt"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"s|i:set_encrypt"
,
kwnames
,
&
passwd
,
&
flags
))
{
&
passwd
,
&
flags
))
{
...
@@ -3034,7 +3034,7 @@ DBC_get(DBCursorObject* self, PyObject* args, PyObject *kwargs)
...
@@ -3034,7 +3034,7 @@ DBC_get(DBCursorObject* self, PyObject* args, PyObject *kwargs)
int
dlen
=
-
1
;
int
dlen
=
-
1
;
int
doff
=
-
1
;
int
doff
=
-
1
;
DBT
key
,
data
;
DBT
key
,
data
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"data"
,
"flags"
,
"dlen"
,
"doff"
,
static
char
*
kwnames
[]
=
{
"key"
,
"data"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
NULL
};
CLEAR_DBT
(
key
);
CLEAR_DBT
(
key
);
...
@@ -3121,7 +3121,7 @@ DBC_pget(DBCursorObject* self, PyObject* args, PyObject *kwargs)
...
@@ -3121,7 +3121,7 @@ DBC_pget(DBCursorObject* self, PyObject* args, PyObject *kwargs)
int
dlen
=
-
1
;
int
dlen
=
-
1
;
int
doff
=
-
1
;
int
doff
=
-
1
;
DBT
key
,
pkey
,
data
;
DBT
key
,
pkey
,
data
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"data"
,
"flags"
,
"dlen"
,
"doff"
,
static
char
*
kwnames
[]
=
{
"key"
,
"data"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
NULL
};
CLEAR_DBT
(
key
);
CLEAR_DBT
(
key
);
...
@@ -3283,7 +3283,7 @@ DBC_put(DBCursorObject* self, PyObject* args, PyObject* kwargs)
...
@@ -3283,7 +3283,7 @@ DBC_put(DBCursorObject* self, PyObject* args, PyObject* kwargs)
int
err
,
flags
=
0
;
int
err
,
flags
=
0
;
PyObject
*
keyobj
,
*
dataobj
;
PyObject
*
keyobj
,
*
dataobj
;
DBT
key
,
data
;
DBT
key
,
data
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"data"
,
"flags"
,
"dlen"
,
"doff"
,
static
char
*
kwnames
[]
=
{
"key"
,
"data"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
NULL
};
int
dlen
=
-
1
;
int
dlen
=
-
1
;
int
doff
=
-
1
;
int
doff
=
-
1
;
...
@@ -3319,7 +3319,7 @@ DBC_set(DBCursorObject* self, PyObject* args, PyObject *kwargs)
...
@@ -3319,7 +3319,7 @@ DBC_set(DBCursorObject* self, PyObject* args, PyObject *kwargs)
int
err
,
flags
=
0
;
int
err
,
flags
=
0
;
DBT
key
,
data
;
DBT
key
,
data
;
PyObject
*
retval
,
*
keyobj
;
PyObject
*
retval
,
*
keyobj
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
static
char
*
kwnames
[]
=
{
"key"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
int
dlen
=
-
1
;
int
dlen
=
-
1
;
int
doff
=
-
1
;
int
doff
=
-
1
;
...
@@ -3389,7 +3389,7 @@ DBC_set_range(DBCursorObject* self, PyObject* args, PyObject* kwargs)
...
@@ -3389,7 +3389,7 @@ DBC_set_range(DBCursorObject* self, PyObject* args, PyObject* kwargs)
int
err
,
flags
=
0
;
int
err
,
flags
=
0
;
DBT
key
,
data
;
DBT
key
,
data
;
PyObject
*
retval
,
*
keyobj
;
PyObject
*
retval
,
*
keyobj
;
static
c
onst
c
har
*
kwnames
[]
=
{
"key"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
static
char
*
kwnames
[]
=
{
"key"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
int
dlen
=
-
1
;
int
dlen
=
-
1
;
int
doff
=
-
1
;
int
doff
=
-
1
;
...
@@ -3579,7 +3579,7 @@ DBC_set_recno(DBCursorObject* self, PyObject* args, PyObject *kwargs)
...
@@ -3579,7 +3579,7 @@ DBC_set_recno(DBCursorObject* self, PyObject* args, PyObject *kwargs)
PyObject
*
retval
;
PyObject
*
retval
;
int
dlen
=
-
1
;
int
dlen
=
-
1
;
int
doff
=
-
1
;
int
doff
=
-
1
;
static
c
onst
c
har
*
kwnames
[]
=
{
"recno"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
static
char
*
kwnames
[]
=
{
"recno"
,
"flags"
,
"dlen"
,
"doff"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"i|iii:set_recno"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"i|iii:set_recno"
,
kwnames
,
&
irecno
,
&
flags
,
&
dlen
,
&
doff
))
&
irecno
,
&
flags
,
&
dlen
,
&
doff
))
...
@@ -3773,7 +3773,7 @@ DBEnv_dbremove(DBEnvObject* self, PyObject* args, PyObject* kwargs)
...
@@ -3773,7 +3773,7 @@ DBEnv_dbremove(DBEnvObject* self, PyObject* args, PyObject* kwargs)
char
*
database
=
NULL
;
char
*
database
=
NULL
;
PyObject
*
txnobj
=
NULL
;
PyObject
*
txnobj
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"file"
,
"database"
,
"txn"
,
"flags"
,
static
char
*
kwnames
[]
=
{
"file"
,
"database"
,
"txn"
,
"flags"
,
NULL
};
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"ss|Oi:dbremove"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"ss|Oi:dbremove"
,
kwnames
,
...
@@ -3801,7 +3801,7 @@ DBEnv_dbrename(DBEnvObject* self, PyObject* args, PyObject* kwargs)
...
@@ -3801,7 +3801,7 @@ DBEnv_dbrename(DBEnvObject* self, PyObject* args, PyObject* kwargs)
char
*
newname
=
NULL
;
char
*
newname
=
NULL
;
PyObject
*
txnobj
=
NULL
;
PyObject
*
txnobj
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"file"
,
"database"
,
"newname"
,
"txn"
,
static
char
*
kwnames
[]
=
{
"file"
,
"database"
,
"newname"
,
"txn"
,
"flags"
,
NULL
};
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"sss|Oi:dbrename"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"sss|Oi:dbrename"
,
kwnames
,
...
@@ -3826,7 +3826,7 @@ DBEnv_set_encrypt(DBEnvObject* self, PyObject* args, PyObject* kwargs)
...
@@ -3826,7 +3826,7 @@ DBEnv_set_encrypt(DBEnvObject* self, PyObject* args, PyObject* kwargs)
int
err
;
int
err
;
u_int32_t
flags
=
0
;
u_int32_t
flags
=
0
;
char
*
passwd
=
NULL
;
char
*
passwd
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"passwd"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"passwd"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"s|i:set_encrypt"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"s|i:set_encrypt"
,
kwnames
,
&
passwd
,
&
flags
))
{
&
passwd
,
&
flags
))
{
...
@@ -3849,7 +3849,7 @@ DBEnv_set_timeout(DBEnvObject* self, PyObject* args, PyObject* kwargs)
...
@@ -3849,7 +3849,7 @@ DBEnv_set_timeout(DBEnvObject* self, PyObject* args, PyObject* kwargs)
int
err
;
int
err
;
u_int32_t
flags
=
0
;
u_int32_t
flags
=
0
;
u_int32_t
timeout
=
0
;
u_int32_t
timeout
=
0
;
static
c
onst
c
har
*
kwnames
[]
=
{
"timeout"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"timeout"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"ii:set_timeout"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"ii:set_timeout"
,
kwnames
,
&
timeout
,
&
flags
))
{
&
timeout
,
&
flags
))
{
...
@@ -4136,7 +4136,7 @@ DBEnv_txn_begin(DBEnvObject* self, PyObject* args, PyObject* kwargs)
...
@@ -4136,7 +4136,7 @@ DBEnv_txn_begin(DBEnvObject* self, PyObject* args, PyObject* kwargs)
int
flags
=
0
;
int
flags
=
0
;
PyObject
*
txnobj
=
NULL
;
PyObject
*
txnobj
=
NULL
;
DB_TXN
*
txn
=
NULL
;
DB_TXN
*
txn
=
NULL
;
static
c
onst
c
har
*
kwnames
[]
=
{
"parent"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"parent"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:txn_begin"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:txn_begin"
,
kwnames
,
&
txnobj
,
&
flags
))
&
txnobj
,
&
flags
))
...
@@ -4986,7 +4986,7 @@ DB_construct(PyObject* self, PyObject* args, PyObject* kwargs)
...
@@ -4986,7 +4986,7 @@ DB_construct(PyObject* self, PyObject* args, PyObject* kwargs)
{
{
PyObject
*
dbenvobj
=
NULL
;
PyObject
*
dbenvobj
=
NULL
;
int
flags
=
0
;
int
flags
=
0
;
static
c
onst
c
har
*
kwnames
[]
=
{
"dbEnv"
,
"flags"
,
NULL
};
static
char
*
kwnames
[]
=
{
"dbEnv"
,
"flags"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:DB"
,
kwnames
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwargs
,
"|Oi:DB"
,
kwnames
,
&
dbenvobj
,
&
flags
))
&
dbenvobj
,
&
flags
))
...
...
Modules/_csv.c
View file @
02cbf4ae
...
@@ -291,7 +291,7 @@ Dialect_dealloc(DialectObj *self)
...
@@ -291,7 +291,7 @@ Dialect_dealloc(DialectObj *self)
self
->
ob_type
->
tp_free
((
PyObject
*
)
self
);
self
->
ob_type
->
tp_free
((
PyObject
*
)
self
);
}
}
static
c
onst
c
har
*
dialect_kws
[]
=
{
static
char
*
dialect_kws
[]
=
{
"dialect"
,
"dialect"
,
"delimiter"
,
"delimiter"
,
"doublequote"
,
"doublequote"
,
...
...
Modules/_elementtree.c
View file @
02cbf4ae
...
@@ -106,12 +106,6 @@ typedef int Py_ssize_t;
...
@@ -106,12 +106,6 @@ typedef int Py_ssize_t;
#endif
#endif
#endif
#endif
#if (PY_VERSION_HEX >= 0x02050000)
#define PY_CONST const
/* 2.5 adds const to some API:s */
#else
#define PY_CONST
#endif
#if !defined(Py_RETURN_NONE)
#if !defined(Py_RETURN_NONE)
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
#endif
...
@@ -2192,7 +2186,7 @@ xmlparser(PyObject* _self, PyObject* args, PyObject* kw)
...
@@ -2192,7 +2186,7 @@ xmlparser(PyObject* _self, PyObject* args, PyObject* kw)
PyObject
*
target
=
NULL
;
PyObject
*
target
=
NULL
;
char
*
encoding
=
NULL
;
char
*
encoding
=
NULL
;
static
PY_CONST
char
*
kwlist
[]
=
{
"target"
,
"encoding"
,
NULL
};
static
char
*
kwlist
[]
=
{
"target"
,
"encoding"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"|Oz:XMLParser"
,
kwlist
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"|Oz:XMLParser"
,
kwlist
,
&
target
,
&
encoding
))
&
target
,
&
encoding
))
return
NULL
;
return
NULL
;
...
...
Modules/cjkcodecs/multibytecodec.c
View file @
02cbf4ae
...
@@ -45,8 +45,8 @@ PyDoc_STRVAR(MultibyteCodec_StreamReader__doc__,
...
@@ -45,8 +45,8 @@ PyDoc_STRVAR(MultibyteCodec_StreamReader__doc__,
PyDoc_STRVAR
(
MultibyteCodec_StreamWriter__doc__
,
PyDoc_STRVAR
(
MultibyteCodec_StreamWriter__doc__
,
"I.StreamWriter(stream[, errors]) -> StreamWriter instance"
);
"I.StreamWriter(stream[, errors]) -> StreamWriter instance"
);
static
c
onst
c
har
*
codeckwarglist
[]
=
{
"input"
,
"errors"
,
NULL
};
static
char
*
codeckwarglist
[]
=
{
"input"
,
"errors"
,
NULL
};
static
c
onst
c
har
*
streamkwarglist
[]
=
{
"stream"
,
"errors"
,
NULL
};
static
char
*
streamkwarglist
[]
=
{
"stream"
,
"errors"
,
NULL
};
static
PyObject
*
multibytecodec_encode
(
MultibyteCodec
*
,
static
PyObject
*
multibytecodec_encode
(
MultibyteCodec
*
,
MultibyteCodec_State
*
,
const
Py_UNICODE
**
,
size_t
,
MultibyteCodec_State
*
,
const
Py_UNICODE
**
,
size_t
,
...
...
Modules/datetimemodule.c
View file @
02cbf4ae
...
@@ -1891,7 +1891,7 @@ delta_new(PyTypeObject *type, PyObject *args, PyObject *kw)
...
@@ -1891,7 +1891,7 @@ delta_new(PyTypeObject *type, PyObject *args, PyObject *kw)
PyObject
*
y
=
NULL
;
/* temp sum of microseconds */
PyObject
*
y
=
NULL
;
/* temp sum of microseconds */
double
leftover_us
=
0
.
0
;
double
leftover_us
=
0
.
0
;
static
c
onst
c
har
*
keywords
[]
=
{
static
char
*
keywords
[]
=
{
"days"
,
"seconds"
,
"microseconds"
,
"milliseconds"
,
"days"
,
"seconds"
,
"microseconds"
,
"milliseconds"
,
"minutes"
,
"hours"
,
"weeks"
,
NULL
"minutes"
,
"hours"
,
"weeks"
,
NULL
};
};
...
@@ -2194,7 +2194,7 @@ static PyGetSetDef date_getset[] = {
...
@@ -2194,7 +2194,7 @@ static PyGetSetDef date_getset[] = {
/* Constructors. */
/* Constructors. */
static
c
onst
c
har
*
date_kws
[]
=
{
"year"
,
"month"
,
"day"
,
NULL
};
static
char
*
date_kws
[]
=
{
"year"
,
"month"
,
"day"
,
NULL
};
static
PyObject
*
static
PyObject
*
date_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kw
)
date_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kw
)
...
@@ -2448,7 +2448,7 @@ date_strftime(PyDateTime_Date *self, PyObject *args, PyObject *kw)
...
@@ -2448,7 +2448,7 @@ date_strftime(PyDateTime_Date *self, PyObject *args, PyObject *kw)
PyObject
*
result
;
PyObject
*
result
;
PyObject
*
format
;
PyObject
*
format
;
PyObject
*
tuple
;
PyObject
*
tuple
;
static
c
onst
c
har
*
keywords
[]
=
{
"format"
,
NULL
};
static
char
*
keywords
[]
=
{
"format"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"O!:strftime"
,
keywords
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"O!:strftime"
,
keywords
,
&
PyString_Type
,
&
format
))
&
PyString_Type
,
&
format
))
...
@@ -3028,7 +3028,7 @@ static PyGetSetDef time_getset[] = {
...
@@ -3028,7 +3028,7 @@ static PyGetSetDef time_getset[] = {
* Constructors.
* Constructors.
*/
*/
static
c
onst
c
har
*
time_kws
[]
=
{
"hour"
,
"minute"
,
"second"
,
"microsecond"
,
static
char
*
time_kws
[]
=
{
"hour"
,
"minute"
,
"second"
,
"microsecond"
,
"tzinfo"
,
NULL
};
"tzinfo"
,
NULL
};
static
PyObject
*
static
PyObject
*
...
@@ -3196,7 +3196,7 @@ time_strftime(PyDateTime_Time *self, PyObject *args, PyObject *kw)
...
@@ -3196,7 +3196,7 @@ time_strftime(PyDateTime_Time *self, PyObject *args, PyObject *kw)
PyObject
*
result
;
PyObject
*
result
;
PyObject
*
format
;
PyObject
*
format
;
PyObject
*
tuple
;
PyObject
*
tuple
;
static
c
onst
c
har
*
keywords
[]
=
{
"format"
,
NULL
};
static
char
*
keywords
[]
=
{
"format"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"O!:strftime"
,
keywords
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"O!:strftime"
,
keywords
,
&
PyString_Type
,
&
format
))
&
PyString_Type
,
&
format
))
...
@@ -3548,7 +3548,7 @@ static PyGetSetDef datetime_getset[] = {
...
@@ -3548,7 +3548,7 @@ static PyGetSetDef datetime_getset[] = {
* Constructors.
* Constructors.
*/
*/
static
c
onst
c
har
*
datetime_kws
[]
=
{
static
char
*
datetime_kws
[]
=
{
"year"
,
"month"
,
"day"
,
"hour"
,
"minute"
,
"second"
,
"year"
,
"month"
,
"day"
,
"hour"
,
"minute"
,
"second"
,
"microsecond"
,
"tzinfo"
,
NULL
"microsecond"
,
"tzinfo"
,
NULL
};
};
...
@@ -3729,7 +3729,7 @@ datetime_now(PyObject *cls, PyObject *args, PyObject *kw)
...
@@ -3729,7 +3729,7 @@ datetime_now(PyObject *cls, PyObject *args, PyObject *kw)
{
{
PyObject
*
self
;
PyObject
*
self
;
PyObject
*
tzinfo
=
Py_None
;
PyObject
*
tzinfo
=
Py_None
;
static
c
onst
c
har
*
keywords
[]
=
{
"tz"
,
NULL
};
static
char
*
keywords
[]
=
{
"tz"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"|O:now"
,
keywords
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"|O:now"
,
keywords
,
&
tzinfo
))
&
tzinfo
))
...
@@ -3765,7 +3765,7 @@ datetime_fromtimestamp(PyObject *cls, PyObject *args, PyObject *kw)
...
@@ -3765,7 +3765,7 @@ datetime_fromtimestamp(PyObject *cls, PyObject *args, PyObject *kw)
PyObject
*
self
;
PyObject
*
self
;
double
timestamp
;
double
timestamp
;
PyObject
*
tzinfo
=
Py_None
;
PyObject
*
tzinfo
=
Py_None
;
static
c
onst
c
har
*
keywords
[]
=
{
"timestamp"
,
"tz"
,
NULL
};
static
char
*
keywords
[]
=
{
"timestamp"
,
"tz"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"d|O:fromtimestamp"
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"d|O:fromtimestamp"
,
keywords
,
&
timestamp
,
&
tzinfo
))
keywords
,
&
timestamp
,
&
tzinfo
))
...
@@ -3843,7 +3843,7 @@ datetime_strptime(PyObject *cls, PyObject *args)
...
@@ -3843,7 +3843,7 @@ datetime_strptime(PyObject *cls, PyObject *args)
static
PyObject
*
static
PyObject
*
datetime_combine
(
PyObject
*
cls
,
PyObject
*
args
,
PyObject
*
kw
)
datetime_combine
(
PyObject
*
cls
,
PyObject
*
args
,
PyObject
*
kw
)
{
{
static
c
onst
c
har
*
keywords
[]
=
{
"date"
,
"time"
,
NULL
};
static
char
*
keywords
[]
=
{
"date"
,
"time"
,
NULL
};
PyObject
*
date
;
PyObject
*
date
;
PyObject
*
time
;
PyObject
*
time
;
PyObject
*
result
=
NULL
;
PyObject
*
result
=
NULL
;
...
@@ -4070,7 +4070,7 @@ static PyObject *
...
@@ -4070,7 +4070,7 @@ static PyObject *
datetime_isoformat
(
PyDateTime_DateTime
*
self
,
PyObject
*
args
,
PyObject
*
kw
)
datetime_isoformat
(
PyDateTime_DateTime
*
self
,
PyObject
*
args
,
PyObject
*
kw
)
{
{
char
sep
=
'T'
;
char
sep
=
'T'
;
static
c
onst
c
har
*
keywords
[]
=
{
"sep"
,
NULL
};
static
char
*
keywords
[]
=
{
"sep"
,
NULL
};
char
buffer
[
100
];
char
buffer
[
100
];
char
*
cp
;
char
*
cp
;
PyObject
*
result
;
PyObject
*
result
;
...
@@ -4261,7 +4261,7 @@ datetime_astimezone(PyDateTime_DateTime *self, PyObject *args, PyObject *kw)
...
@@ -4261,7 +4261,7 @@ datetime_astimezone(PyDateTime_DateTime *self, PyObject *args, PyObject *kw)
int
offset
,
none
;
int
offset
,
none
;
PyObject
*
tzinfo
;
PyObject
*
tzinfo
;
static
c
onst
c
har
*
keywords
[]
=
{
"tz"
,
NULL
};
static
char
*
keywords
[]
=
{
"tz"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"O!:astimezone"
,
keywords
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"O!:astimezone"
,
keywords
,
&
PyDateTime_TZInfoType
,
&
tzinfo
))
&
PyDateTime_TZInfoType
,
&
tzinfo
))
...
...
Modules/itertoolsmodule.c
View file @
02cbf4ae
...
@@ -26,7 +26,7 @@ static PyObject *_grouper_create(groupbyobject *, PyObject *);
...
@@ -26,7 +26,7 @@ static PyObject *_grouper_create(groupbyobject *, PyObject *);
static
PyObject
*
static
PyObject
*
groupby_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kwds
)
groupby_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kwds
)
{
{
static
c
onst
c
har
*
kwargs
[]
=
{
"iterable"
,
"key"
,
NULL
};
static
char
*
kwargs
[]
=
{
"iterable"
,
"key"
,
NULL
};
groupbyobject
*
gbo
;
groupbyobject
*
gbo
;
PyObject
*
it
,
*
keyfunc
=
Py_None
;
PyObject
*
it
,
*
keyfunc
=
Py_None
;
...
...
Modules/mmapmodule.c
View file @
02cbf4ae
...
@@ -874,7 +874,7 @@ new_mmap_object(PyObject *self, PyObject *args, PyObject *kwdict)
...
@@ -874,7 +874,7 @@ new_mmap_object(PyObject *self, PyObject *args, PyObject *kwdict)
int
fd
,
flags
=
MAP_SHARED
,
prot
=
PROT_WRITE
|
PROT_READ
;
int
fd
,
flags
=
MAP_SHARED
,
prot
=
PROT_WRITE
|
PROT_READ
;
int
devzero
=
-
1
;
int
devzero
=
-
1
;
int
access
=
(
int
)
ACCESS_DEFAULT
;
int
access
=
(
int
)
ACCESS_DEFAULT
;
static
c
onst
c
har
*
keywords
[]
=
{
"fileno"
,
"length"
,
static
char
*
keywords
[]
=
{
"fileno"
,
"length"
,
"flags"
,
"prot"
,
"flags"
,
"prot"
,
"access"
,
NULL
};
"access"
,
NULL
};
...
@@ -992,7 +992,7 @@ new_mmap_object(PyObject *self, PyObject *args, PyObject *kwdict)
...
@@ -992,7 +992,7 @@ new_mmap_object(PyObject *self, PyObject *args, PyObject *kwdict)
HANDLE
fh
=
0
;
HANDLE
fh
=
0
;
int
access
=
(
access_mode
)
ACCESS_DEFAULT
;
int
access
=
(
access_mode
)
ACCESS_DEFAULT
;
DWORD
flProtect
,
dwDesiredAccess
;
DWORD
flProtect
,
dwDesiredAccess
;
static
c
onst
c
har
*
keywords
[]
=
{
"fileno"
,
"length"
,
static
char
*
keywords
[]
=
{
"fileno"
,
"length"
,
"tagname"
,
"tagname"
,
"access"
,
NULL
};
"access"
,
NULL
};
...
...
Modules/socketmodule.c
View file @
02cbf4ae
...
@@ -2566,7 +2566,7 @@ sock_initobj(PyObject *self, PyObject *args, PyObject *kwds)
...
@@ -2566,7 +2566,7 @@ sock_initobj(PyObject *self, PyObject *args, PyObject *kwds)
PySocketSockObject
*
s
=
(
PySocketSockObject
*
)
self
;
PySocketSockObject
*
s
=
(
PySocketSockObject
*
)
self
;
SOCKET_T
fd
;
SOCKET_T
fd
;
int
family
=
AF_INET
,
type
=
SOCK_STREAM
,
proto
=
0
;
int
family
=
AF_INET
,
type
=
SOCK_STREAM
,
proto
=
0
;
static
c
onst
c
har
*
keywords
[]
=
{
"family"
,
"type"
,
"proto"
,
0
};
static
char
*
keywords
[]
=
{
"family"
,
"type"
,
"proto"
,
0
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwds
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwds
,
"|iii:socket"
,
keywords
,
"|iii:socket"
,
keywords
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment