Skip to content

Commit afdabd5

Browse files
committed
Remove @critical_section
1 parent 2dbed4e commit afdabd5

File tree

2 files changed

+7
-29
lines changed

2 files changed

+7
-29
lines changed

Modules/_zstd/clinic/zstddict.c.h

Lines changed: 4 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_zstd/zstddict.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ static PyMemberDef ZstdDict_members[] = {
146146
};
147147

148148
/*[clinic input]
149-
@critical_section
150149
@getter
151150
_zstd.ZstdDict.as_digested_dict
152151
@@ -163,13 +162,12 @@ Pass this attribute as zstd_dict argument: compress(dat, zstd_dict=zd.as_digeste
163162

164163
static PyObject *
165164
_zstd_ZstdDict_as_digested_dict_get_impl(ZstdDict *self)
166-
/*[clinic end generated code: output=09b086e7a7320dbb input=585448c79f31f74a]*/
165+
/*[clinic end generated code: output=09b086e7a7320dbb input=10cd2b6165931b77]*/
167166
{
168167
return Py_BuildValue("Oi", self, DICT_TYPE_DIGESTED);
169168
}
170169

171170
/*[clinic input]
172-
@critical_section
173171
@getter
174172
_zstd.ZstdDict.as_undigested_dict
175173
@@ -184,13 +182,12 @@ Pass this attribute as zstd_dict argument: compress(dat, zstd_dict=zd.as_undiges
184182

185183
static PyObject *
186184
_zstd_ZstdDict_as_undigested_dict_get_impl(ZstdDict *self)
187-
/*[clinic end generated code: output=43c7a989e6d4253a input=022b0829ffb1c220]*/
185+
/*[clinic end generated code: output=43c7a989e6d4253a input=11e5f5df690a85b4]*/
188186
{
189187
return Py_BuildValue("Oi", self, DICT_TYPE_UNDIGESTED);
190188
}
191189

192190
/*[clinic input]
193-
@critical_section
194191
@getter
195192
_zstd.ZstdDict.as_prefix
196193
@@ -205,7 +202,7 @@ Pass this attribute as zstd_dict argument: compress(dat, zstd_dict=zd.as_prefix)
205202

206203
static PyObject *
207204
_zstd_ZstdDict_as_prefix_get_impl(ZstdDict *self)
208-
/*[clinic end generated code: output=6f7130c356595a16 input=09fb82a6a5407e87]*/
205+
/*[clinic end generated code: output=6f7130c356595a16 input=b028e0ae6ec4292b]*/
209206
{
210207
return Py_BuildValue("Oi", self, DICT_TYPE_PREFIX);
211208
}

0 commit comments

Comments
 (0)