summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-12-14 11:19:51 +0200
committerGitHub <noreply@github.com>2018-12-14 11:19:51 +0200
commitafb3e71a1710c444fbe789b51df43ee16ee9ede7 (patch)
tree31c2164ceb03c23e1ce6a10c93a016693349f776 /Tools
parent7b36016a15aeed0d76a4c05a66203e6d7723aace (diff)
downloadcpython-git-afb3e71a1710c444fbe789b51df43ee16ee9ede7.tar.gz
bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150)
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/clinic/clinic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 2df8071440..1adabb95cc 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -2858,7 +2858,7 @@ class unicode_converter(CConverter):
@add_legacy_c_converter('Z', accept={str, NoneType})
@add_legacy_c_converter('Z#', accept={str, NoneType}, zeroes=True)
class Py_UNICODE_converter(CConverter):
- type = 'Py_UNICODE *'
+ type = 'const Py_UNICODE *'
default_type = (str, Null, NoneType)
format_unit = 'u'