@@ -3044,17 +3044,6 @@ class dev_t_return_converter(unsigned_long_return_converter):
30443044 conversion_fn = '_PyLong_FromDev'
30453045 unsigned_cast = '(dev_t)'
30463046
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-
30583047class pid_t_converter(CConverter):
30593048 type = 'pid_t'
30603049 format_unit = '" _Py_PARSE_PID "'
@@ -3093,7 +3082,7 @@ class confname_converter(CConverter):
30933082 """, argname=argname, converter=self.converter, table=self.table)
30943083
30953084[python start generated code]*/
3096- /*[python end generated code: output=da39a3ee5e6b4b0d input=a6199b1618d73f53 ]*/
3085+ /*[python end generated code: output=da39a3ee5e6b4b0d input=1a078a0f42a586c1 ]*/
30973086
30983087/*[clinic input]
30993088
@@ -6013,14 +6002,14 @@ os_system_impl(PyObject *module, const wchar_t *command)
60136002/*[clinic input]
60146003os.system -> long
60156004
6016- command: FSConverter
6005+ command: unicode_fs_encoded
60176006
60186007Execute the command in a subshell.
60196008[clinic start generated code]*/
60206009
60216010static long
60226011os_system_impl (PyObject * module , PyObject * command )
6023- /*[clinic end generated code: output=290fc437dd4f33a0 input=86a58554ba6094af ]*/
6012+ /*[clinic end generated code: output=290fc437dd4f33a0 input=47c6f24b6dc92881 ]*/
60246013{
60256014 long result ;
60266015 const char * bytes = PyBytes_AsString (command );
@@ -9200,7 +9189,7 @@ os_getgroups_impl(PyObject *module)
92009189/*[clinic input]
92019190os.initgroups
92029191
9203- username as oname: FSConverter
9192+ username as oname: unicode_fs_encoded
92049193 gid: int
92059194 /
92069195
@@ -9213,12 +9202,12 @@ group id.
92139202
92149203static PyObject *
92159204os_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 ]*/
92179206#else
92189207/*[clinic input]
92199208os.initgroups
92209209
9221- username as oname: FSConverter
9210+ username as oname: unicode_fs_encoded
92229211 gid: gid_t
92239212 /
92249213
@@ -9231,7 +9220,7 @@ group id.
92319220
92329221static PyObject *
92339222os_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 ]*/
92359224#endif
92369225{
92379226 const char * username = PyBytes_AS_STRING (oname );
@@ -12956,16 +12945,16 @@ os_putenv_impl(PyObject *module, PyObject *name, PyObject *value)
1295612945/*[clinic input]
1295712946os.putenv
1295812947
12959- name: FSConverter
12960- value: FSConverter
12948+ name: unicode_fs_encoded
12949+ value: unicode_fs_encoded
1296112950 /
1296212951
1296312952Change or add an environment variable.
1296412953[clinic start generated code]*/
1296512954
1296612955static PyObject *
1296712956os_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 ]*/
1296912958{
1297012959 const char * name_string = PyBytes_AS_STRING (name );
1297112960 const char * value_string = PyBytes_AS_STRING (value );
@@ -13008,15 +12997,15 @@ os_unsetenv_impl(PyObject *module, PyObject *name)
1300812997#else
1300912998/*[clinic input]
1301012999os.unsetenv
13011- name: FSConverter
13000+ name: unicode_fs_encoded
1301213001 /
1301313002
1301413003Delete an environment variable.
1301513004[clinic start generated code]*/
1301613005
1301713006static PyObject *
1301813007os_unsetenv_impl (PyObject * module , PyObject * name )
13019- /*[clinic end generated code: output=54c4137ab1834f02 input=2bb5288a599c7107 ]*/
13008+ /*[clinic end generated code: output=54c4137ab1834f02 input=78ff12e505ade80a ]*/
1302013009{
1302113010 if (PySys_Audit ("os.unsetenv" , "(O)" , name ) < 0 ) {
1302213011 return NULL ;
@@ -15074,14 +15063,14 @@ os_urandom_impl(PyObject *module, Py_ssize_t size)
1507415063/*[clinic input]
1507515064os.memfd_create
1507615065
15077- name: FSConverter
15066+ name: unicode_fs_encoded
1507815067 flags: unsigned_int(bitwise=True, c_default="MFD_CLOEXEC") = MFD_CLOEXEC
1507915068
1508015069[clinic start generated code]*/
1508115070
1508215071static PyObject *
1508315072os_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 ]*/
1508515074{
1508615075 int fd ;
1508715076 const char * bytes = PyBytes_AS_STRING (name );
0 commit comments