FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Set default arguments in _testlimitedcapi/unicode.c by vstinner · Pull Request #159380 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .c  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
12 changes: 6 additions & 6 deletions Modules/_testlimitedcapi/unicode.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ unicode_encodecodepage(PyObject *self, PyObject *args)
{
int code_page;
PyObject *unicode;
const char *errors;
const char *errors = NULL;

if (!PyArg_ParseTuple(args, "iO|z", &code_page, &unicode, &errors))
return NULL;
Expand All @@ -1010,7 +1010,7 @@ unicode_decodelocaleandsize(PyObject *self, PyObject *args)
{
const char *data;
Py_ssize_t size;
const char *errors;
const char *errors = NULL;

if (!PyArg_ParseTuple(args, "y#|z", &data, &size, &errors))
return NULL;
Expand All @@ -1024,7 +1024,7 @@ unicode_decodelocale(PyObject *self, PyObject *args)
{
const char *data;
Py_ssize_t size;
const char *errors;
const char *errors = NULL;

if (!PyArg_ParseTuple(args, "y#|z", &data, &size, &errors))
return NULL;
Expand All @@ -1037,7 +1037,7 @@ static PyObject *
unicode_encodelocale(PyObject *self, PyObject *args)
{
PyObject *unicode;
const char *errors;
const char *errors = NULL;

if (!PyArg_ParseTuple(args, "O|z", &unicode, &errors))
return NULL;
Expand Down Expand Up @@ -1331,7 +1331,7 @@ unicode_comparewithasciistring(PyObject *self, PyObject *args)
{
PyObject *left;
const char *right = NULL;
Py_ssize_t right_len;
Py_ssize_t right_len = 0;
int result;

if (!PyArg_ParseTuple(args, "O|y#", &left, &right, &right_len))
Expand Down Expand Up @@ -1370,7 +1370,7 @@ unicode_equaltoutf8andsize(PyObject *self, PyObject *args)
{
PyObject *left;
const char *right = NULL;
Py_ssize_t right_len;
Py_ssize_t right_len = 0;
Py_ssize_t size = -100;
int result;

Expand Down
Loading

Back | FazBrowse Home | New Git URL