8000 Fix over-indented blocks in argument clinic · python/cpython@cadf6e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit cadf6e4

Browse files
committed
Fix over-indented blocks in argument clinic
1 parent 85efc18 commit cadf6e4

File tree

2 files changed

+21
-22
lines changed

2 files changed

+21
-22
lines changed

Modules/_zstd/_zstdmodule.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -178,21 +178,21 @@ get_zstd_state(PyObject *module)
178178
/*[clinic input]
179179
_zstd._train_dict
180180
181-
samples_bytes: PyBytesObject
182-
Concatenation of samples.
183-
samples_size_list: object(subclass_of='&PyList_Type')
184-
List of samples' sizes.
185-
dict_size: Py_ssize_t
186-
The size of the dictionary.
187-
/
181+
samples_bytes: PyBytesObject
182+
Concatenation of samples.
183+
samples_size_list: object(subclass_of='&PyList_Type')
184+
List of samples' sizes.
185+
dict_size: Py_ssize_t
186+
The size of the dictionary.
187+
/
188188
189189
Internal function, train a zstd dictionary on sample data.
190190
[clinic start generated code]*/
191191

192192
static PyObject *
193193
_zstd__train_dict_impl(PyObject *module, PyBytesObject *samples_bytes,
194194
PyObject *samples_size_list, Py_ssize_t dict_size)
195-
/*[clinic end generated code: output=ee53c34c8f77886b input=fdb00ebe474d1df9]*/
195+
/*[clinic end generated code: output=ee53c34c8f77886b input=b21d092c695a3a81]*/
196196
{
197197
// TODO(emmatyping): The preamble and suffix to this function and _finalize_dict
198198
// are pretty similar. We should see if we can refactor them to share that code.
@@ -281,17 +281,17 @@ _zstd__train_dict_impl(PyObject *module, PyBytesObject *samples_bytes,
281281
/*[clinic input]
282282
_zstd._finalize_dict
283283
284-
custom_dict_bytes: PyBytesObject
285-
Custom dictionary content.
286-
samples_bytes: PyBytesObject
287-
Concatenation of samples.
288-
samples_size_list: object(subclass_of='&PyList_Type')
289-
List of samples' sizes.
290-
dict_size: Py_ssize_t
291-
The size of the dictionary.
292-
compression_level: int
293-
Optimize for a specific zstd compression level, 0 means default.
294-
/
284+
custom_dict_bytes: PyBytesObject
285+
Custom dictionary content.
286+
samples_bytes: PyBytesObject
287+
Concatenation of samples.
288+
samples_size_list: object(subclass_of='&PyList_Type')
289+
List of samples' sizes.
290+
dict_size: Py_ssize_t
291+
The size of the dictionary.
292+
compression_level: int
293+
Optimize for a specific zstd compression level, 0 means default.
294+
/
295295
296296
Internal function, finalize a zstd dictionary.
297297
[clinic start generated code]*/
@@ -301,7 +301,7 @@ _zstd__finalize_dict_impl(PyObject *module, PyBytesObject *custom_dict_bytes,
301301
PyBytesObject *samples_bytes,
302302
PyObject *samples_size_list, Py_ssize_t dict_size,
303303
int compression_level)
304-
/*[clinic end generated code: output=9c2a7d8c845cee93 input=ef6f4f2b0b7e178d]*/
304+
/*[clinic end generated code: output=9c2a7d8c845cee93 input=08531a803d87c56f]*/
305305
{
306306
Py_ssize_t chunks_number;
307307
size_t *chunk_sizes = NULL;

Modules/_zstd/decompressor.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,6 @@ _zstd_ZstdDecompressor_unused_data_get_impl(ZstdDecompressor *self)
766766
/*[clinic input]
767767
_zstd.ZstdDecompressor.decompress
768768
769-
770769
data: Py_buffer
771770
A bytes-like object, zstd data to be decompressed.
772771
max_length: Py_ssize_t = -1
@@ -794,7 +793,7 @@ static PyObject *
794793
_zstd_ZstdDecompressor_decompress_impl(ZstdDecompressor *self,
795794
Py_buffer *data,
796795
Py_ssize_t max_length)
797-
/*[clinic end generated code: output=a4302b3c940dbec6 input=16423de8f1c25985]*/
796+
/*[clinic end generated code: output=a4302b3c940dbec6 input=830e455bc9a50b6e]*/
798797
{
799798
PyObject *ret;
800799
/* Thread-safe code */

0 commit comments

Comments
 (0)
0