@@ -3122,17 +3122,6 @@ class dev_t_return_converter(unsigned_long_return_converter):
31223122 conversion_fn = '_PyLong_FromDev'
31233123 unsigned_cast = '(dev_t)'
31243124
3125- class FSConverter_converter(CConverter):
3126- type = 'PyObject *'
3127- converter = 'PyUnicode_FSConverter'
3128- def converter_init(self):
3129- if self.default is not unspecified:
3130- fail("FSConverter_converter does not support default values")
3131- self.c_default = 'NULL'
3132-
3133- def cleanup(self):
3134- return "Py_XDECREF(" + self.name + ");\n"
3135-
31363125class pid_t_converter(CConverter):
31373126 type = 'pid_t'
31383127 format_unit = '" _Py_PARSE_PID "'
@@ -3196,7 +3185,7 @@ class confname_converter(CConverter):
31963185 """, argname=argname, converter=self.converter, table=self.table)
31973186
31983187[python start generated code]*/
3199- /*[python end generated code: output=da39a3ee5e6b4b0d input=8189d5ae78244626 ]*/
3188+ /*[python end generated code: output=da39a3ee5e6b4b0d input=d2759f2332cd39b3 ]*/
32003189
32013190/*[clinic input]
32023191
@@ -6098,14 +6087,14 @@ os_system_impl(PyObject *module, const wchar_t *command)
60986087/*[clinic input]
60996088os.system -> long
61006089
6101- command: FSConverter
6090+ command: unicode_fs_encoded
61026091
61036092Execute the command in a subshell.
61046093[clinic start generated code]*/
61056094
61066095static long
61076096os_system_impl (PyObject * module , PyObject * command )
6108- /*[clinic end generated code: output=290fc437dd4f33a0 input=86a58554ba6094af ]*/
6097+ /*[clinic end generated code: output=290fc437dd4f33a0 input=47c6f24b6dc92881 ]*/
61096098{
61106099 long result ;
61116100 const char * bytes = PyBytes_AsString (command );
@@ -9285,7 +9274,7 @@ os_getgroups_impl(PyObject *module)
92859274/*[clinic input]
92869275os.initgroups
92879276
9288- username as oname: FSConverter
9277+ username as oname: unicode_fs_encoded
92899278 gid: int
92909279 /
92919280
@@ -9298,12 +9287,12 @@ group id.
92989287
92999288static PyObject *
93009289os_initgroups_impl (PyObject * module , PyObject * oname , int gid )
9301- /*[clinic end generated code: output=7f074d30a425fd3a input=df3d54331b0af204 ]*/
9290+ /*[clinic end generated code: output=7f074d30a425fd3a input=984e60c7fed88cb4 ]*/
93029291#else
93039292/*[clinic input]
93049293os.initgroups
93059294
9306- username as oname: FSConverter
9295+ username as oname: unicode_fs_encoded
93079296 gid: gid_t
93089297 /
93099298
@@ -9316,7 +9305,7 @@ group id.
93169305
93179306static PyObject *
93189307os_initgroups_impl (PyObject * module , PyObject * oname , gid_t gid )
9319- /*[clinic end generated code: output=59341244521a9e3f input=0cb91bdc59a4c564 ]*/
9308+ /*[clinic end generated code: output=59341244521a9e3f input=17d8fbe2dea42ca4 ]*/
93209309#endif
93219310{
93229311 const char * username = PyBytes_AS_STRING (oname );
@@ -13067,16 +13056,16 @@ os_putenv_impl(PyObject *module, PyObject *name, PyObject *value)
1306713056/*[clinic input]
1306813057os.putenv
1306913058
13070- name: FSConverter
13071- value: FSConverter
13059+ name: unicode_fs_encoded
13060+ value: unicode_fs_encoded
1307213061 /
1307313062
1307413063Change or add an environment variable.
1307513064[clinic start generated code]*/
1307613065
1307713066static PyObject *
1307813067os_putenv_impl (PyObject * module , PyObject * name , PyObject * value )
13079- /*[clinic end generated code: output=d29a567d6b2327d2 input=a97bc6152f688d31 ]*/
13068+ /*[clinic end generated code: output=d29a567d6b2327d2 input=84fcd30f873c8c45 ]*/
1308013069{
1308113070 const char * name_string = PyBytes_AS_STRING (name );
1308213071 const char * value_string = PyBytes_AS_STRING (value );
@@ -13119,15 +13108,15 @@ os_unsetenv_impl(PyObject *module, PyObject *name)
1311913108#else
1312013109/*[clinic input]
1312113110os.unsetenv
13122- name: FSConverter
13111+ name: unicode_fs_encoded
1312313112 /
1312413113
1312513114Delete an environment variable.
1312613115[clinic start generated code]*/
1312713116
1312813117static PyObject *
1312913118os_unsetenv_impl (PyObject * module , PyObject * name )
13130- /*[clinic end generated code: output=54c4137ab1834f02 input=2bb5288a599c7107 ]*/
13119+ /*[clinic end generated code: output=54c4137ab1834f02 input=78ff12e505ade80a ]*/
1313113120{
1313213121 if (PySys_Audit ("os.unsetenv" , "(O)" , name ) < 0 ) {
1313313122 return NULL ;
@@ -15185,14 +15174,14 @@ os_urandom_impl(PyObject *module, Py_ssize_t size)
1518515174/*[clinic input]
1518615175os.memfd_create
1518715176
15188- name: FSConverter
15177+ name: unicode_fs_encoded
1518915178 flags: unsigned_int(bitwise=True, c_default="MFD_CLOEXEC") = MFD_CLOEXEC
1519015179
1519115180[clinic start generated code]*/
1519215181
1519315182static PyObject *
1519415183os_memfd_create_impl (PyObject * module , PyObject * name , unsigned int flags )
15195- /*[clinic end generated code: output=6681ede983bdb9a6 input=a42cfc199bcd56e9 ]*/
15184+ /*[clinic end generated code: output=6681ede983bdb9a6 input=cd0eb092cfac474b ]*/
1519615185{
1519715186 int fd ;
1519815187 const char * bytes = PyBytes_AS_STRING (name );
0 commit comments