Skip to content

Commit 8237e0c

Browse files
committed
Merge: Unite RVV backend completion with upstream doctest temp-path fix
2 parents 5e8d6db + e5784ae commit 8237e0c

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

python/stringzilla.c

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2749,17 +2749,19 @@ static PyObject *Str_like_decode(PyObject *self, PyObject *const *args, Py_ssize
27492749
return PyUnicode_Decode(text.start, text.length, encoding.start, errors.start);
27502750
}
27512751

2752-
static char const doc_write_to[] = //
2753-
"Write the string to a file.\n" //
2754-
"\n" //
2755-
"Args:\n" //
2756-
" text (Str or str or bytes): The string object.\n" //
2757-
" filename (str): The file path to write to.\n" //
2758-
"Returns:\n" //
2759-
" None.\n" //
2760-
"\n" //
2761-
"Example:\n" //
2762-
" >>> sz.Str('payload').write_to('/tmp/sz_demo.bin')";
2752+
static char const doc_write_to[] = //
2753+
"Write the string to a file.\n" //
2754+
"\n" //
2755+
"Args:\n" //
2756+
" text (Str or str or bytes): The string object.\n" //
2757+
" filename (str): The file path to write to.\n" //
2758+
"Returns:\n" //
2759+
" None.\n" //
2760+
"\n" //
2761+
"Example:\n" //
2762+
" >>> import os, tempfile\n" //
2763+
" >>> path = os.path.join(tempfile.gettempdir(), 'sz_demo.bin')\n" //
2764+
" >>> sz.Str('payload').write_to(path)";
27632765

27642766
static PyObject *Str_write_to(PyObject *self, PyObject *const *args, Py_ssize_t positional_args_count,
27652767
PyObject *args_names_tuple) {
@@ -6627,7 +6629,7 @@ static PyObject *Utf8WordbreaksType_iter(PyObject *self) {
66276629
return self;
66286630
}
66296631

6630-
static char const doc_Utf8Wordbreaks[] = //
6632+
static char const doc_Utf8Wordbreaks[] = //
66316633
"Utf8Wordbreaks(string, ...)\n" //
66326634
"\n" //
66336635
"UTF-8 aware word boundary iterator per Unicode TR29 algorithm.\n" //

0 commit comments

Comments
 (0)