@@ -3044,17 +3044,6 @@ class dev_t_return_converter(unsigned_long_return_converter):
3044
3044
conversion_fn = '_PyLong_FromDev'
3045
3045
unsigned_cast = '(dev_t)'
3046
3046
3047
- class FSConverter_converter(CConverter):
3048
- type = 'PyObject *'
3049
- converter = 'PyUnicode_FSConverter'
3050
- def converter_init(self):
3051
- if self.default is not unspecified:
3052
- fail("FSConverter_converter does not support default values")
3053
- self.c_default = 'NULL'
3054
-
3055
- def cleanup(self):
3056
- return "Py_XDECREF(" + self.name + ");\n"
3057
-
3058
3047
class pid_t_converter(CConverter):
3059
3048
type = 'pid_t'
3060
3049
format_unit = '" _Py_PARSE_PID "'
@@ -3093,7 +3082,7 @@ class confname_converter(CConverter):
3093
3082
""", argname=argname, converter=self.converter, table=self.table)
3094
3083
3095
3084
[python start generated code]*/
3096
- /*[python end generated code: output=da39a3ee5e6b4b0d input=a6199b1618d73f53 ]*/
3085
+ /*[python end generated code: output=da39a3ee5e6b4b0d input=1a078a0f42a586c1 ]*/
3097
3086
3098
3087
/*[clinic input]
3099
3088
@@ -6013,14 +6002,14 @@ os_system_impl(PyObject *module, const wchar_t *command)
6013
6002
/*[clinic input]
6014
6003
os.system -> long
6015
6004
6016
- command: FSConverter
6005
+ command: unicode_fs_encoded
6017
6006
6018
6007
Execute the command in a subshell.
6019
6008
[clinic start generated code]*/
6020
6009
6021
6010
static long
6022
6011
os_system_impl (PyObject * module , PyObject * command )
6023
- /*[clinic end generated code: output=290fc437dd4f33a0 input=86a58554ba6094af ]*/
6012
+ /*[clinic end generated code: output=290fc437dd4f33a0 input=47c6f24b6dc92881 ]*/
6024
6013
{
6025
6014
long result ;
6026
6015
const char * bytes = PyBytes_AsString (command );
@@ -9200,7 +9189,7 @@ os_getgroups_impl(PyObject *module)
9200
9189
/*[clinic input]
9201
9190
os.initgroups
9202
9191
9203
- username as oname: FSConverter
9192
+ username as oname: unicode_fs_encoded
9204
9193
gid: int
9205
9194
/
9206
9195
@@ -9213,12 +9202,12 @@ group id.
9213
9202
9214
9203
static PyObject *
9215
9204
os_initgroups_impl (PyObject * module , PyObject * oname , int gid )
9216
- /*[clinic end generated code: output=7f074d30a425fd3a input=df3d54331b0af204 ]*/
9205
+ /*[clinic end generated code: output=7f074d30a425fd3a input=984e60c7fed88cb4 ]*/
9217
9206
#else
9218
9207
/*[clinic input]
9219
9208
os.initgroups
9220
9209
9221
- username as oname: FSConverter
9210
+ username as oname: unicode_fs_encoded
9222
9211
gid: gid_t
9223
9212
/
9224
9213
@@ -9231,7 +9220,7 @@ group id.
9231
9220
9232
9221
static PyObject *
9233
9222
os_initgroups_impl (PyObject * module , PyObject * oname , gid_t gid )
9234
- /*[clinic end generated code: output=59341244521a9e3f input=0cb91bdc59a4c564 ]*/
9223
+ /*[clinic end generated code: output=59341244521a9e3f input=17d8fbe2dea42ca4 ]*/
9235
9224
#endif
9236
9225
{
9237
9226
const char * username = PyBytes_AS_STRING (oname );
@@ -12956,16 +12945,16 @@ os_putenv_impl(PyObject *module, PyObject *name, PyObject *value)
12956
12945
/*[clinic input]
12957
12946
os.putenv
12958
12947
12959
- name: FSConverter
12960
- value: FSConverter
12948
+ name: unicode_fs_encoded
12949
+ value: unicode_fs_encoded
12961
12950
/
12962
12951
12963
12952
Change or add an environment variable.
12964
12953
[clinic start generated code]*/
12965
12954
12966
12955
static PyObject *
12967
12956
os_putenv_impl (PyObject * module , PyObject * name , PyObject * value )
12968
- /*[clinic end generated code: output=d29a567d6b2327d2 input=a97bc6152f688d31 ]*/
12957
+ /*[clinic end generated code: output=d29a567d6b2327d2 input=84fcd30f873c8c45 ]*/
12969
12958
{
12970
12959
const char * name_string = PyBytes_AS_STRING (name );
12971
12960
const char * value_string = PyBytes_AS_STRING (value );
@@ -13008,15 +12997,15 @@ os_unsetenv_impl(PyObject *module, PyObject *name)
13008
12997
#else
13009
12998
/*[clinic input]
13010
12999
os.unsetenv
13011
- name: FSConverter
13000
+ name: unicode_fs_encoded
13012
13001
/
13013
13002
13014
13003
Delete an environment variable.
13015
13004
[clinic start generated code]*/
13016
13005
13017
13006
static PyObject *
13018
13007
os_unsetenv_impl (PyObject * module , PyObject * name )
13019
- /*[clinic end generated code: output=54c4137ab1834f02 input=2bb5288a599c7107 ]*/
13008
+ /*[clinic end generated code: output=54c4137ab1834f02 input=78ff12e505ade80a ]*/
13020
13009
{
13021
13010
if (PySys_Audit ("os.unsetenv" , "(O)" , name ) < 0 ) {
13022
13011
return NULL ;
@@ -15074,14 +15063,14 @@ os_urandom_impl(PyObject *module, Py_ssize_t size)
15074
15063
/*[clinic input]
15075
15064
os.memfd_create
15076
15065
15077
- name: FSConverter
15066
+ name: unicode_fs_encoded
15078
15067
flags: unsigned_int(bitwise=True, c_default="MFD_CLOEXEC") = MFD_CLOEXEC
15079
15068
15080
15069
[clinic start generated code]*/
15081
15070
15082
15071
static PyObject *
15083
15072
os_memfd_create_impl (PyObject * module , PyObject * name , unsigned int flags )
15084
- /*[clinic end generated code: output=6681ede983bdb9a6 input=a42cfc199bcd56e9 ]*/
15073
+ /*[clinic end generated code: output=6681ede983bdb9a6 input=cd0eb092cfac474b ]*/
15085
15074
{
15086
15075
int fd ;
15087
15076
const char * bytes = PyBytes_AS_STRING (name );
0 commit comments