Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6a6e5 commit 5e3ad61Copy full SHA for 5e3ad61
src/cstring.c
@@ -1,5 +1,6 @@
1
#include <Python.h>
2
3
+#define WHITESPACE_CHARS " \t\n\v\f\r"
4
5
/* memrchr not available on some systems, so reimplement. */
6
const char *_memrchr(const char *s, int c, size_t n) {
@@ -660,7 +661,7 @@ const char *_strip_chars_from_args(PyObject *args) {
660
661
if(!PyArg_ParseTuple(args, "|O", &charsobj))
662
return NULL;
663
- const char *chars = " \t\n\v\f\r";
664
+ const char *chars = WHITESPACE_CHARS;
665
666
if(charsobj && charsobj != Py_None) {
667
if(!PyUnicode_Check(charsobj))
0 commit comments