@@ -3137,17 +3137,6 @@ class dev_t_return_converter(unsigned_long_return_converter):
31373137 conversion_fn = '_PyLong_FromDev'
31383138 unsigned_cast = '(dev_t)'
31393139
3140- class FSConverter_converter(CConverter):
3141- type = 'PyObject *'
3142- converter = 'PyUnicode_FSConverter'
3143- def converter_init(self):
3144- if self.default is not unspecified:
3145- fail("FSConverter_converter does not support default values")
3146- self.c_default = 'NULL'
3147-
3148- def cleanup(self):
3149- return "Py_XDECREF(" + self.name + ");\n"
3150-
31513140class pid_t_converter(CConverter):
31523141 type = 'pid_t'
31533142 format_unit = '" _Py_PARSE_PID "'
@@ -3211,7 +3200,7 @@ class confname_converter(CConverter):
32113200 """, argname=argname, converter=self.converter, table=self.table)
32123201
32133202[python start generated code]*/
3214- /*[python end generated code: output=da39a3ee5e6b4b0d input=8189d5ae78244626 ]*/
3203+ /*[python end generated code: output=da39a3ee5e6b4b0d input=d2759f2332cd39b3 ]*/
32153204
32163205/*[clinic input]
32173206
@@ -6135,14 +6124,14 @@ os_system_impl(PyObject *module, const wchar_t *command)
61356124/*[clinic input]
61366125os.system -> long
61376126
6138- command: FSConverter
6127+ command: unicode_fs_encoded
61396128
61406129Execute the command in a subshell.
61416130[clinic start generated code]*/
61426131
61436132static long
61446133os_system_impl (PyObject * module , PyObject * command )
6145- /*[clinic end generated code: output=290fc437dd4f33a0 input=86a58554ba6094af ]*/
6134+ /*[clinic end generated code: output=290fc437dd4f33a0 input=47c6f24b6dc92881 ]*/
61466135{
61476136 long result ;
61486137 const char * bytes = PyBytes_AsString (command );
@@ -9328,7 +9317,7 @@ os_getgroups_impl(PyObject *module)
93289317/*[clinic input]
93299318os.initgroups
93309319
9331- username as oname: FSConverter
9320+ username as oname: unicode_fs_encoded
93329321 gid: int
93339322 /
93349323
@@ -9341,12 +9330,12 @@ group id.
93419330
93429331static PyObject *
93439332os_initgroups_impl (PyObject * module , PyObject * oname , int gid )
9344- /*[clinic end generated code: output=7f074d30a425fd3a input=df3d54331b0af204 ]*/
9333+ /*[clinic end generated code: output=7f074d30a425fd3a input=984e60c7fed88cb4 ]*/
93459334#else
93469335/*[clinic input]
93479336os.initgroups
93489337
9349- username as oname: FSConverter
9338+ username as oname: unicode_fs_encoded
93509339 gid: gid_t
93519340 /
93529341
@@ -9359,7 +9348,7 @@ group id.
93599348
93609349static PyObject *
93619350os_initgroups_impl (PyObject * module , PyObject * oname , gid_t gid )
9362- /*[clinic end generated code: output=59341244521a9e3f input=0cb91bdc59a4c564 ]*/
9351+ /*[clinic end generated code: output=59341244521a9e3f input=17d8fbe2dea42ca4 ]*/
93639352#endif
93649353{
93659354 const char * username = PyBytes_AS_STRING (oname );
@@ -13115,16 +13104,16 @@ os_putenv_impl(PyObject *module, PyObject *name, PyObject *value)
1311513104/*[clinic input]
1311613105os.putenv
1311713106
13118- name: FSConverter
13119- value: FSConverter
13107+ name: unicode_fs_encoded
13108+ value: unicode_fs_encoded
1312013109 /
1312113110
1312213111Change or add an environment variable.
1312313112[clinic start generated code]*/
1312413113
1312513114static PyObject *
1312613115os_putenv_impl (PyObject * module , PyObject * name , PyObject * value )
13127- /*[clinic end generated code: output=d29a567d6b2327d2 input=a97bc6152f688d31 ]*/
13116+ /*[clinic end generated code: output=d29a567d6b2327d2 input=84fcd30f873c8c45 ]*/
1312813117{
1312913118 const char * name_string = PyBytes_AS_STRING (name );
1313013119 const char * value_string = PyBytes_AS_STRING (value );
@@ -13167,15 +13156,15 @@ os_unsetenv_impl(PyObject *module, PyObject *name)
1316713156#else
1316813157/*[clinic input]
1316913158os.unsetenv
13170- name: FSConverter
13159+ name: unicode_fs_encoded
1317113160 /
1317213161
1317313162Delete an environment variable.
1317413163[clinic start generated code]*/
1317513164
1317613165static PyObject *
1317713166os_unsetenv_impl (PyObject * module , PyObject * name )
13178- /*[clinic end generated code: output=54c4137ab1834f02 input=2bb5288a599c7107 ]*/
13167+ /*[clinic end generated code: output=54c4137ab1834f02 input=78ff12e505ade80a ]*/
1317913168{
1318013169 if (PySys_Audit ("os.unsetenv" , "(O)" , name ) < 0 ) {
1318113170 return NULL ;
@@ -15229,14 +15218,14 @@ os_urandom_impl(PyObject *module, Py_ssize_t size)
1522915218/*[clinic input]
1523015219os.memfd_create
1523115220
15232- name: FSConverter
15221+ name: unicode_fs_encoded
1523315222 flags: unsigned_int(bitwise=True, c_default="MFD_CLOEXEC") = MFD_CLOEXEC
1523415223
1523515224[clinic start generated code]*/
1523615225
1523715226static PyObject *
1523815227os_memfd_create_impl (PyObject * module , PyObject * name , unsigned int flags )
15239- /*[clinic end generated code: output=6681ede983bdb9a6 input=a42cfc199bcd56e9 ]*/
15228+ /*[clinic end generated code: output=6681ede983bdb9a6 input=cd0eb092cfac474b ]*/
1524015229{
1524115230 int fd ;
1524215231 const char * bytes = PyBytes_AS_STRING (name );
0 commit comments