mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-94512: Fix forced arg format in AC-processed winreg (GH-94513)
This commit is contained in:
parent
21f6b4d783
commit
9b50f76fcd
2 changed files with 201 additions and 22 deletions
|
@ -217,13 +217,11 @@ class winreg.HKEYType "PyHKEYObject *" "&PyHKEY_Type"
|
|||
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=4c964eba3bf914d6]*/
|
||||
|
||||
/*[python input]
|
||||
class REGSAM_converter(CConverter):
|
||||
class REGSAM_converter(int_converter):
|
||||
type = 'REGSAM'
|
||||
format_unit = 'i'
|
||||
|
||||
class DWORD_converter(CConverter):
|
||||
class DWORD_converter(unsigned_long_converter):
|
||||
type = 'DWORD'
|
||||
format_unit = 'k'
|
||||
|
||||
class HKEY_converter(CConverter):
|
||||
type = 'HKEY'
|
||||
|
@ -249,7 +247,7 @@ class self_return_converter(CReturnConverter):
|
|||
data.return_conversion.append(
|
||||
'return_value = (PyObject *)_return_value;\n')
|
||||
[python start generated code]*/
|
||||
/*[python end generated code: output=da39a3ee5e6b4b0d input=22f7aedc6d68e80e]*/
|
||||
/*[python end generated code: output=da39a3ee5e6b4b0d input=2ebb7a4922d408d6]*/
|
||||
|
||||
#include "clinic/winreg.c.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue