diff options
Diffstat (limited to 'Tools/clinic/clinic.py')
-rwxr-xr-x | Tools/clinic/clinic.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 7f435f1..f4f0017 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -615,6 +615,9 @@ class CLanguage(Language): return self.render_function(clinic, function) def docstring_for_c_string(self, f): + if re.search(r'[^\x00-\x7F]', f.docstring): + warn("Non-ascii character appear in docstring.") + text, add, output = _text_accumulator() # turn docstring into a properly quoted C string for line in f.docstring.split('\n'): |