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
1374dbb6
Commit
1374dbb6
authored
May 01, 2017
by
Xiang Zhang
Committed by
GitHub
May 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore *data* parameter of binascii.b2a_base64 to positional-only (#1352)
parent
2e624690
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Modules/binascii.c
Modules/binascii.c
+2
-1
Modules/clinic/binascii.c.h
Modules/clinic/binascii.c.h
+3
-3
No files found.
Modules/binascii.c
View file @
1374dbb6
...
...
@@ -515,6 +515,7 @@ binascii_a2b_base64_impl(PyObject *module, Py_buffer *data)
binascii.b2a_base64
data: Py_buffer
/
*
newline: bool(accept={int}) = True
...
...
@@ -523,7 +524,7 @@ Base64-code line of data.
static
PyObject
*
binascii_b2a_base64_impl
(
PyObject
*
module
,
Py_buffer
*
data
,
int
newline
)
/*[clinic end generated code: output=4ad62c8e8485d3b3 input=
144fd7267a34d51c
]*/
/*[clinic end generated code: output=4ad62c8e8485d3b3 input=
6083dac5777fa45d
]*/
{
unsigned
char
*
ascii_data
;
const
unsigned
char
*
bin_data
;
...
...
Modules/clinic/binascii.c.h
View file @
1374dbb6
...
...
@@ -97,7 +97,7 @@ exit:
}
PyDoc_STRVAR
(
binascii_b2a_base64__doc__
,
"b2a_base64($module,
/, data
, *, newline=True)
\n
"
"b2a_base64($module,
data, /
, *, newline=True)
\n
"
"--
\n
"
"
\n
"
"Base64-code line of data."
);
...
...
@@ -112,7 +112,7 @@ static PyObject *
binascii_b2a_base64
(
PyObject
*
module
,
PyObject
**
args
,
Py_ssize_t
nargs
,
PyObject
*
kwnames
)
{
PyObject
*
return_value
=
NULL
;
static
const
char
*
const
_keywords
[]
=
{
"
data
"
,
"newline"
,
NULL
};
static
const
char
*
const
_keywords
[]
=
{
""
,
"newline"
,
NULL
};
static
_PyArg_Parser
_parser
=
{
"y*|$i:b2a_base64"
,
_keywords
,
0
};
Py_buffer
data
=
{
NULL
,
NULL
};
int
newline
=
1
;
...
...
@@ -558,4 +558,4 @@ exit:
return
return_value
;
}
/*[clinic end generated code: output=
4a418f883ccc79fe
input=a9049054013a1b77]*/
/*[clinic end generated code: output=
35821bce7e0e4714
input=a9049054013a1b77]*/
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